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 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1016 int fSaveLayerCount; // number of successful saveLayer calls | 1016 int fSaveLayerCount; // number of successful saveLayer calls |
1017 | 1017 |
1018 SkMetaData* fMetaData; | 1018 SkMetaData* fMetaData; |
1019 | 1019 |
1020 SkSurface_Base* fSurfaceBase; | 1020 SkSurface_Base* fSurfaceBase; |
1021 SkSurface_Base* getSurfaceBase() const { return fSurfaceBase; } | 1021 SkSurface_Base* getSurfaceBase() const { return fSurfaceBase; } |
1022 void setSurfaceBase(SkSurface_Base* sb) { | 1022 void setSurfaceBase(SkSurface_Base* sb) { |
1023 fSurfaceBase = sb; | 1023 fSurfaceBase = sb; |
1024 } | 1024 } |
1025 friend class SkSurface_Base; | 1025 friend class SkSurface_Base; |
| 1026 friend class SkSurface_Gpu; |
1026 | 1027 |
1027 bool fDeviceCMDirty; // cleared by updateDeviceCMCache() | 1028 bool fDeviceCMDirty; // cleared by updateDeviceCMCache() |
1028 void updateDeviceCMCache(); | 1029 void updateDeviceCMCache(); |
1029 | 1030 |
1030 friend class SkDrawIter; // needs setupDrawForLayerDevice() | 1031 friend class SkDrawIter; // needs setupDrawForLayerDevice() |
1031 friend class AutoDrawLooper; | 1032 friend class AutoDrawLooper; |
1032 | 1033 |
1033 SkDevice* createLayerDevice(SkBitmap::Config, int width, int height, | 1034 SkDevice* createLayerDevice(SkBitmap::Config, int width, int height, |
1034 bool isOpaque); | 1035 bool isOpaque); |
1035 | 1036 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1122 fCanvas = NULL; | 1123 fCanvas = NULL; |
1123 } | 1124 } |
1124 } | 1125 } |
1125 | 1126 |
1126 private: | 1127 private: |
1127 SkCanvas* fCanvas; | 1128 SkCanvas* fCanvas; |
1128 int fSaveCount; | 1129 int fSaveCount; |
1129 }; | 1130 }; |
1130 | 1131 |
1131 #endif | 1132 #endif |
OLD | NEW |