| 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 SkPictureContentInfo_DEFINED | 8 #ifndef SkPictureContentInfo_DEFINED |
| 9 #define SkPictureContentInfo_DEFINED | 9 #define SkPictureContentInfo_DEFINED |
| 10 | 10 |
| 11 #include "SkTDArray.h" |
| 12 |
| 11 class GrContext; | 13 class GrContext; |
| 12 | 14 |
| 13 class SkPictureContentInfo { | 15 class SkPictureContentInfo { |
| 14 public: | 16 public: |
| 15 SkPictureContentInfo() { this->reset(); } | 17 SkPictureContentInfo() { this->reset(); } |
| 16 SkPictureContentInfo(const SkPictureContentInfo& src) { this->set(src); } | 18 SkPictureContentInfo(const SkPictureContentInfo& src) { this->set(src); } |
| 17 | 19 |
| 18 int numOperations() const { return fNumOperations; } | 20 int numOperations() const { return fNumOperations; } |
| 19 bool hasText() const { return fNumTexts > 0; } | 21 bool hasText() const { return fNumTexts > 0; } |
| 20 | 22 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // Did the current save or saveLayer contain another saveLayer. | 80 // Did the current save or saveLayer contain another saveLayer. |
| 79 // Percolated back down the save stack. | 81 // Percolated back down the save stack. |
| 80 kContainedSaveLayer_Flag = 0x4 | 82 kContainedSaveLayer_Flag = 0x4 |
| 81 }; | 83 }; |
| 82 | 84 |
| 83 // Stack of save vs saveLayer information to track nesting | 85 // Stack of save vs saveLayer information to track nesting |
| 84 SkTDArray<uint32_t> fSaveStack; | 86 SkTDArray<uint32_t> fSaveStack; |
| 85 }; | 87 }; |
| 86 | 88 |
| 87 #endif | 89 #endif |
| OLD | NEW |