diff options
author | 2014-11-24 09:49:17 -0800 | |
---|---|---|
committer | 2014-11-24 09:49:17 -0800 | |
commit | 30d7841f906116c3945ec8125a816a5c5462fed0 (patch) | |
tree | 40fecb4654dc961252b95364d015d8db601c1bce /src/gpu/GrLayerHoister.h | |
parent | 7ef849d45a4de02697697ea213bfae7c215a0c38 (diff) |
Add support for hoisting layers in pictures drawn with a matrix
Although Chromium doesn't use the drawPicture matrix parameter for their tiling, our local code does. Without such drawPicture calls break layer hoisting.
BUG=skia:2315
Review URL: https://codereview.chromium.org/748853002
Diffstat (limited to 'src/gpu/GrLayerHoister.h')
-rw-r--r-- | src/gpu/GrLayerHoister.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpu/GrLayerHoister.h b/src/gpu/GrLayerHoister.h index 12d8a842a0..84c7896abe 100644 --- a/src/gpu/GrLayerHoister.h +++ b/src/gpu/GrLayerHoister.h @@ -36,6 +36,7 @@ public: layers can be inside nested sub-pictures. @param context Owner of the layer cache (the source of new layers) @param topLevelPicture The top-level picture that is about to be rendered + @param initialMat The CTM of the canvas into which the layers will be drawn @param query The rectangle that is about to be drawn. @param atlasedNeedRendering Out parameter storing the layers that should be hoisted to the atlas @@ -44,6 +45,7 @@ public: */ static void FindLayersToAtlas(GrContext* context, const SkPicture* topLevelPicture, + const SkMatrix& initialMat, const SkRect& query, SkTDArray<GrHoistedLayer>* atlasedNeedRendering, SkTDArray<GrHoistedLayer>* recycled, @@ -53,6 +55,7 @@ public: layers can be inside nested sub-pictures. @param context Owner of the layer cache (the source of new layers) @param topLevelPicture The top-level picture that is about to be rendered + @param initialMat The CTM of the canvas into which the layers will be drawn @param query The rectangle that is about to be drawn. @param needRendering Out parameter storing the layers that need rendering. This should never include atlased layers. @@ -61,6 +64,7 @@ public: */ static void FindLayersToHoist(GrContext* context, const SkPicture* topLevelPicture, + const SkMatrix& initialMat, const SkRect& query, SkTDArray<GrHoistedLayer>* needRendering, SkTDArray<GrHoistedLayer>* recycled, |