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

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

Issue 531733003: Reorganize Layer Hoisting code (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 3 months 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
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698