| 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 #define SK_IGNORE_GPU_LAYER_HOISTING |
| 12 |
| 13 |
| 11 #include "SkPicture.h" | 14 #include "SkPicture.h" |
| 12 #include "SkTDArray.h" | 15 #include "SkTDArray.h" |
| 13 | 16 |
| 17 #if !defined(SK_IGNORE_GPU_LAYER_HOISTING) && SK_SUPPORT_GPU |
| 18 |
| 14 struct GrCachedLayer; | 19 struct GrCachedLayer; |
| 15 class GrReplacements; | 20 class GrReplacements; |
| 16 class SkGpuDevice; | 21 class SkGpuDevice; |
| 17 struct SkRect; | 22 struct SkRect; |
| 18 | 23 |
| 19 class GrHoistedLayer { | 24 class GrHoistedLayer { |
| 20 public: | 25 public: |
| 21 const SkPicture* fPicture; // the picture that actually contains the layer | 26 const SkPicture* fPicture; // the picture that actually contains the layer |
| 22 // (not necessarily the top-most picture) | 27 // (not necessarily the top-most picture) |
| 23 GrCachedLayer* fLayer; | 28 GrCachedLayer* fLayer; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 118 |
| 114 private: | 119 private: |
| 115 /** Update the GrTexture in 'layer' with its filtered version | 120 /** Update the GrTexture in 'layer' with its filtered version |
| 116 @param context Owner of the layer cache (and thus the layers) | 121 @param context Owner of the layer cache (and thus the layers) |
| 117 @param props Surface properties | 122 @param props Surface properties |
| 118 @param info Layer info for a layer needing filtering prior to bein
g composited | 123 @param info Layer info for a layer needing filtering prior to bein
g composited |
| 119 */ | 124 */ |
| 120 static void FilterLayer(GrContext* context, const SkSurfaceProps*, const GrH
oistedLayer& info); | 125 static void FilterLayer(GrContext* context, const SkSurfaceProps*, const GrH
oistedLayer& info); |
| 121 | 126 |
| 122 }; | 127 }; |
| 128 #endif |
| 123 | 129 |
| 124 #endif | 130 #endif |
| OLD | NEW |