diff options
author | 2014-04-03 00:34:27 +0000 | |
---|---|---|
committer | 2014-04-03 00:34:27 +0000 | |
commit | e930a075625d3d90c023c2570a6a4cae1a4b484f (patch) | |
tree | 2dddc801f837be84726a334cd69572515f8fb74e /src/gpu/SkGpuDevice.cpp | |
parent | d5500886a29a20733c559c0167a6ae9946704de2 (diff) |
Add a GrLayerCache to GrContext
https://codereview.chromium.org/217343006/
git-svn-id: http://skia.googlecode.com/svn/trunk@14038 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/SkGpuDevice.cpp')
-rw-r--r-- | src/gpu/SkGpuDevice.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index 052e6691a4..ee4850fa9b 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp @@ -14,6 +14,7 @@ #include "GrContext.h" #include "GrBitmapTextContext.h" #include "GrDistanceFieldTextContext.h" +#include "GrLayerCache.h" #include "GrPictureUtils.h" #include "SkGrTexturePixelRef.h" @@ -2033,7 +2034,9 @@ bool SkGpuDevice::EXPERIMENTAL_drawPicture(SkPicture* picture) { SkDebugf("Need SaveLayers: "); for (int i = 0; i < gpuData->numSaveLayers(); ++i) { if (pullForward[i]) { - SkDebugf("%d, ", i); + const GrAtlasedLayer* layer = fContext->getLayerCache()->findLayerOrCreate(picture, i); + + SkDebugf("%d (%d), ", i, layer->layerID()); } } SkDebugf("\n"); |