| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #ifndef SkCanvas_DEFINED | 10 #ifndef SkCanvas_DEFINED |
| (...skipping 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1017 // points to top of stack | 1017 // points to top of stack |
| 1018 MCRec* fMCRec; | 1018 MCRec* fMCRec; |
| 1019 // the first N recs that can fit here mean we won't call malloc | 1019 // the first N recs that can fit here mean we won't call malloc |
| 1020 uint32_t fMCRecStorage[32]; | 1020 uint32_t fMCRecStorage[32]; |
| 1021 | 1021 |
| 1022 SkBounder* fBounder; | 1022 SkBounder* fBounder; |
| 1023 int fSaveLayerCount; // number of successful saveLayer calls | 1023 int fSaveLayerCount; // number of successful saveLayer calls |
| 1024 | 1024 |
| 1025 SkMetaData* fMetaData; | 1025 SkMetaData* fMetaData; |
| 1026 | 1026 |
| 1027 bool fQuickRejectEnabled; |
| 1028 friend class SkDisableQuickRejectInScope; |
| 1029 |
| 1027 SkSurface_Base* fSurfaceBase; | 1030 SkSurface_Base* fSurfaceBase; |
| 1028 SkSurface_Base* getSurfaceBase() const { return fSurfaceBase; } | 1031 SkSurface_Base* getSurfaceBase() const { return fSurfaceBase; } |
| 1029 void setSurfaceBase(SkSurface_Base* sb) { | 1032 void setSurfaceBase(SkSurface_Base* sb) { |
| 1030 fSurfaceBase = sb; | 1033 fSurfaceBase = sb; |
| 1031 } | 1034 } |
| 1032 friend class SkSurface_Base; | 1035 friend class SkSurface_Base; |
| 1033 friend class SkSurface_Gpu; | 1036 friend class SkSurface_Gpu; |
| 1034 | 1037 |
| 1035 bool fDeviceCMDirty; // cleared by updateDeviceCMCache() | 1038 bool fDeviceCMDirty; // cleared by updateDeviceCMCache() |
| 1036 void updateDeviceCMCache(); | 1039 void updateDeviceCMCache(); |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1132 fCanvas = NULL; | 1135 fCanvas = NULL; |
| 1133 } | 1136 } |
| 1134 } | 1137 } |
| 1135 | 1138 |
| 1136 private: | 1139 private: |
| 1137 SkCanvas* fCanvas; | 1140 SkCanvas* fCanvas; |
| 1138 int fSaveCount; | 1141 int fSaveCount; |
| 1139 }; | 1142 }; |
| 1140 | 1143 |
| 1141 #endif | 1144 #endif |
| OLD | NEW |