| 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 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 } | 59 } |
| 60 | 60 |
| 61 // We may, in the future, need to pass in the GPUDevice in order to | 61 // We may, in the future, need to pass in the GPUDevice in order to |
| 62 // incorporate the clip and matrix state into the key | 62 // incorporate the clip and matrix state into the key |
| 63 static SkPicture::AccelData::Key ComputeAccelDataKey() { | 63 static SkPicture::AccelData::Key ComputeAccelDataKey() { |
| 64 static const SkPicture::AccelData::Key gGPUID = SkPicture::AccelData::Ge
nerateDomain(); | 64 static const SkPicture::AccelData::Key gGPUID = SkPicture::AccelData::Ge
nerateDomain(); |
| 65 | 65 |
| 66 return gGPUID; | 66 return gGPUID; |
| 67 } | 67 } |
| 68 | 68 |
| 69 protected: | 69 private: |
| 70 SkTDArray<SaveLayerInfo> fSaveLayerInfo; | 70 SkTDArray<SaveLayerInfo> fSaveLayerInfo; |
| 71 | 71 |
| 72 private: | |
| 73 typedef SkPicture::AccelData INHERITED; | 72 typedef SkPicture::AccelData INHERITED; |
| 74 }; | 73 }; |
| 75 | 74 |
| 76 void GatherGPUInfo(SkPicture* pict, GPUAccelData* accelData); | 75 void GatherGPUInfo(SkPicture* pict, GPUAccelData* accelData); |
| 77 | 76 |
| 78 #endif // GrPictureUtils_DEFINED | 77 #endif // GrPictureUtils_DEFINED |
| OLD | NEW |