diff options
author | 2014-10-09 16:43:42 -0700 | |
---|---|---|
committer | 2014-10-09 16:43:42 -0700 | |
commit | 232f6b0f90a02bcdac0c5931d5f9cfd08003b10c (patch) | |
tree | a0983734b05c824c4512fad69835baa7189217a1 /src/gpu/GrLayerHoister.cpp | |
parent | cbe80caedd43ee37a91c5cf1af6bb63fa0e1528e (diff) |
Remove unused SaveLayerInfo::fValid field
Minor code cleanup
Review URL: https://codereview.chromium.org/643713002
Diffstat (limited to 'src/gpu/GrLayerHoister.cpp')
-rw-r--r-- | src/gpu/GrLayerHoister.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gpu/GrLayerHoister.cpp b/src/gpu/GrLayerHoister.cpp index 6c5398b902..00e8b99f45 100644 --- a/src/gpu/GrLayerHoister.cpp +++ b/src/gpu/GrLayerHoister.cpp @@ -16,11 +16,11 @@ // Create the layer information for the hoisted layer and secure the // required texture/render target resources. static void prepare_for_hoisting(GrLayerCache* layerCache, - const SkPicture* topLevelPicture, - const GrAccelData::SaveLayerInfo& info, - SkTDArray<GrHoistedLayer>* atlased, - SkTDArray<GrHoistedLayer>* nonAtlased, - SkTDArray<GrHoistedLayer>* recycled) { + const SkPicture* topLevelPicture, + const GrAccelData::SaveLayerInfo& info, + SkTDArray<GrHoistedLayer>* atlased, + SkTDArray<GrHoistedLayer>* nonAtlased, + SkTDArray<GrHoistedLayer>* recycled) { const SkPicture* pict = info.fPicture ? info.fPicture : topLevelPicture; GrCachedLayer* layer = layerCache->findLayerOrCreate(pict->uniqueID(), @@ -113,7 +113,7 @@ bool GrLayerHoister::FindLayersToHoist(GrContext* context, // TODO: ignore perspective projected layers here! // TODO: once this code is more stable unsuitable layers can // just be omitted during the optimization stage - if (!info.fValid || info.fIsNested) { + if (info.fIsNested) { continue; } |