OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2013 Google Inc. | 3 * Copyright 2013 Google Inc. |
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 #ifndef SkBitmapDevice_DEFINED | 9 #ifndef SkBitmapDevice_DEFINED |
10 #define SkBitmapDevice_DEFINED | 10 #define SkBitmapDevice_DEFINED |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 135 |
136 private: | 136 private: |
137 friend class SkCanvas; | 137 friend class SkCanvas; |
138 friend struct DeviceCM; //for setMatrixClip | 138 friend struct DeviceCM; //for setMatrixClip |
139 friend class SkDraw; | 139 friend class SkDraw; |
140 friend class SkDrawIter; | 140 friend class SkDrawIter; |
141 friend class SkDeviceFilteredPaint; | 141 friend class SkDeviceFilteredPaint; |
142 friend class SkDeviceImageFilterProxy; | 142 friend class SkDeviceImageFilterProxy; |
143 | 143 |
144 friend class SkSurface_Raster; | 144 friend class SkSurface_Raster; |
| 145 friend class SkRasterSurfaceDevice; |
145 | 146 |
146 // used to change the backend's pixels (and possibly config/rowbytes) | 147 // used to change the backend's pixels (and possibly config/rowbytes) |
147 // but cannot change the width/height, so there should be no change to | 148 // but cannot change the width/height, so there should be no change to |
148 // any clip information. | 149 // any clip information. |
149 void replaceBitmapBackendForRasterSurface(const SkBitmap&) SK_OVERRIDE; | 150 void replaceBitmapBackendForRasterSurface(const SkBitmap&) SK_OVERRIDE; |
150 | 151 |
151 SkBaseDevice* onCreateCompatibleDevice(const CreateInfo&) SK_OVERRIDE; | 152 SkBaseDevice* onCreateCompatibleDevice(const CreateInfo&) SK_OVERRIDE; |
152 | 153 |
153 SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) SK_OVERRIDE
; | 154 SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) SK_OVERRIDE
; |
154 const void* peekPixels(SkImageInfo*, size_t* rowBytes) SK_OVERRIDE; | 155 const void* peekPixels(SkImageInfo*, size_t* rowBytes) SK_OVERRIDE; |
155 | 156 |
156 SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE; | 157 SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE; |
157 | 158 |
158 SkBitmap fBitmap; | 159 SkBitmap fBitmap; |
159 | 160 |
160 typedef SkBaseDevice INHERITED; | 161 typedef SkBaseDevice INHERITED; |
161 }; | 162 }; |
162 | 163 |
163 #endif // SkBitmapDevice_DEFINED | 164 #endif // SkBitmapDevice_DEFINED |
OLD | NEW |