Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: src/gpu/GrLayerHoister.h

Issue 719133002: Rename GrAccelData to SkLayerInfo and move it to src/core (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix up unit test Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/GrLayerCache.h ('k') | src/gpu/GrLayerHoister.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/gpu/GrLayerCache.h ('k') | src/gpu/GrLayerHoister.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698