OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright 2014 Google Inc. | |
3 * | |
4 * Use of this source code is governed by a BSD-style license that can be | |
5 * found in the LICENSE file. | |
6 */ | |
7 | |
8 #ifndef GrLayerHoister_DEFINED | |
9 #define GrLayerHoister_DEFINED | |
10 | |
11 #include "SkPicture.h" | |
12 #include "SkTDArray.h" | |
13 | |
14 class GrAccelData; | |
15 struct GrCachedLayer; | |
16 struct SkRect; | |
17 | |
18 // This class collects the layer hoisting functionality in one place. | |
bsalomon
2014/09/02 15:26:20
namespace?
maybe a little bit more description he
robertphillips
2014/09/02 16:14:42
It's a class to provide a hook for friending.
bsalomon
2014/09/02 16:58:14
oh, makes sense.
| |
19 class GrLayerHoister { | |
20 public: | |
21 static bool FindLayersToHoist(const GrAccelData *gpuData, | |
22 const SkPicture::OperationList* ops, | |
23 const SkRect& query, | |
bsalomon
2014/09/02 15:26:20
pullForward[]?
comments on what the params mean?
robertphillips
2014/09/02 16:14:42
Done.
| |
24 bool* pullForward); | |
25 | |
26 static void DrawLayers(const SkPicture* picture, | |
27 const SkTDArray<GrCachedLayer*>& atlased, | |
28 const SkTDArray<GrCachedLayer*>& nonAtlased); | |
29 | |
30 static void UnlockLayers(GrLayerCache* layerCache, const SkPicture* picture) ; | |
31 }; | |
32 | |
33 #endif | |
OLD | NEW |