OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef GrLayerHoister_DEFINED | 8 #ifndef GrLayerHoister_DEFINED |
9 #define GrLayerHoister_DEFINED | 9 #define GrLayerHoister_DEFINED |
10 | 10 |
11 #include "SkPicture.h" | 11 #include "SkPicture.h" |
12 #include "SkTDArray.h" | 12 #include "SkTDArray.h" |
13 | 13 |
14 class GrAccelData; | |
15 struct GrCachedLayer; | 14 struct GrCachedLayer; |
16 class GrReplacements; | 15 class GrReplacements; |
17 struct SkRect; | 16 struct SkRect; |
18 | 17 |
19 class GrHoistedLayer { | 18 class GrHoistedLayer { |
20 public: | 19 public: |
21 const SkPicture* fPicture; | 20 const SkPicture* fPicture; |
22 GrCachedLayer* fLayer; | 21 GrCachedLayer* fLayer; |
23 SkIPoint fOffset; | 22 SkIPoint fOffset; |
24 SkMatrix fPreMat; | 23 SkMatrix fPreMat; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 static void UnlockLayers(GrContext* context, const SkTDArray<GrHoistedLayer>
& layers); | 92 static void UnlockLayers(GrContext* context, const SkTDArray<GrHoistedLayer>
& layers); |
94 | 93 |
95 /** Forceably remove all cached layers and release the atlas. Useful for deb
ugging and timing. | 94 /** Forceably remove all cached layers and release the atlas. Useful for deb
ugging and timing. |
96 This is only functional when GR_CACHE_HOISTED_LAYERS is set to 1 in GrLa
yerCache.h | 95 This is only functional when GR_CACHE_HOISTED_LAYERS is set to 1 in GrLa
yerCache.h |
97 @param context Owner of the layer cache (and thus the layers) | 96 @param context Owner of the layer cache (and thus the layers) |
98 */ | 97 */ |
99 static void PurgeCache(GrContext* context); | 98 static void PurgeCache(GrContext* context); |
100 }; | 99 }; |
101 | 100 |
102 #endif | 101 #endif |
OLD | NEW |