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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 friend class SkDeviceFilteredPaint; | 138 friend class SkDeviceFilteredPaint; |
139 friend class SkDeviceImageFilterProxy; | 139 friend class SkDeviceImageFilterProxy; |
140 | 140 |
141 friend class SkSurface_Raster; | 141 friend class SkSurface_Raster; |
142 | 142 |
143 // used to change the backend's pixels (and possibly config/rowbytes) | 143 // used to change the backend's pixels (and possibly config/rowbytes) |
144 // but cannot change the width/height, so there should be no change to | 144 // but cannot change the width/height, so there should be no change to |
145 // any clip information. | 145 // any clip information. |
146 void replaceBitmapBackendForRasterSurface(const SkBitmap&) SK_OVERRIDE; | 146 void replaceBitmapBackendForRasterSurface(const SkBitmap&) SK_OVERRIDE; |
147 | 147 |
148 SkBaseDevice* onCreateCompatibleDevice(const CreateInfo&) SK_OVERRIDE; | 148 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) SK_OVERRIDE; |
149 | 149 |
150 SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) SK_OVERRIDE
; | 150 SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) SK_OVERRIDE
; |
151 const void* peekPixels(SkImageInfo*, size_t* rowBytes) SK_OVERRIDE; | 151 const void* peekPixels(SkImageInfo*, size_t* rowBytes) SK_OVERRIDE; |
152 | 152 |
153 SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE; | 153 SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE; |
154 | 154 |
155 SkBitmap fBitmap; | 155 SkBitmap fBitmap; |
156 | 156 |
157 typedef SkBaseDevice INHERITED; | 157 typedef SkBaseDevice INHERITED; |
158 }; | 158 }; |
159 | 159 |
160 #endif // SkBitmapDevice_DEFINED | 160 #endif // SkBitmapDevice_DEFINED |
OLD | NEW |