| 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 GrPictureUtils_DEFINED | 8 #ifndef GrPictureUtils_DEFINED |
| 9 #define GrPictureUtils_DEFINED | 9 #define GrPictureUtils_DEFINED |
| 10 | 10 |
| 11 #include "SkMatrix.h" |
| 12 #include "SkPaint.h" |
| 11 #include "SkPicture.h" | 13 #include "SkPicture.h" |
| 12 #include "SkTArray.h" | 14 #include "SkTArray.h" |
| 13 | 15 |
| 14 // This class encapsulates the GPU-backend-specific acceleration data | 16 // This class encapsulates the GPU-backend-specific acceleration data |
| 15 // for a single SkPicture | 17 // for a single SkPicture |
| 16 class GrAccelData : public SkPicture::AccelData { | 18 class GrAccelData : public SkPicture::AccelData { |
| 17 public: | 19 public: |
| 18 // Information about a given saveLayer in an SkPicture | 20 // Information about a given saveLayer in an SkPicture |
| 19 class SaveLayerInfo { | 21 class SaveLayerInfo { |
| 20 public: | 22 public: |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 69 |
| 68 private: | 70 private: |
| 69 SkTArray<SaveLayerInfo, true> fSaveLayerInfo; | 71 SkTArray<SaveLayerInfo, true> fSaveLayerInfo; |
| 70 | 72 |
| 71 typedef SkPicture::AccelData INHERITED; | 73 typedef SkPicture::AccelData INHERITED; |
| 72 }; | 74 }; |
| 73 | 75 |
| 74 const GrAccelData* GPUOptimize(const SkPicture* pict); | 76 const GrAccelData* GPUOptimize(const SkPicture* pict); |
| 75 | 77 |
| 76 #endif // GrPictureUtils_DEFINED | 78 #endif // GrPictureUtils_DEFINED |
| OLD | NEW |