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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 148 |
149 friend class SkSurface_Raster; | 149 friend class SkSurface_Raster; |
150 | 150 |
151 // used to change the backend's pixels (and possibly config/rowbytes) | 151 // used to change the backend's pixels (and possibly config/rowbytes) |
152 // but cannot change the width/height, so there should be no change to | 152 // but cannot change the width/height, so there should be no change to |
153 // any clip information. | 153 // any clip information. |
154 virtual void replaceBitmapBackendForRasterSurface(const SkBitmap&) SK_OVERRI
DE; | 154 virtual void replaceBitmapBackendForRasterSurface(const SkBitmap&) SK_OVERRI
DE; |
155 | 155 |
156 virtual SkBaseDevice* onCreateDevice(const SkImageInfo&, Usage) SK_OVERRIDE; | 156 virtual SkBaseDevice* onCreateDevice(const SkImageInfo&, Usage) SK_OVERRIDE; |
157 | 157 |
158 virtual SkSurface* newSurface(const SkImageInfo&) SK_OVERRIDE; | 158 virtual SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) SK_
OVERRIDE; |
159 virtual const void* peekPixels(SkImageInfo*, size_t* rowBytes) SK_OVERRIDE; | 159 virtual const void* peekPixels(SkImageInfo*, size_t* rowBytes) SK_OVERRIDE; |
160 | 160 |
161 virtual SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE; | 161 virtual SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE; |
162 | 162 |
163 SkBitmap fBitmap; | 163 SkBitmap fBitmap; |
164 | 164 |
165 typedef SkBaseDevice INHERITED; | 165 typedef SkBaseDevice INHERITED; |
166 }; | 166 }; |
167 | 167 |
168 #endif // SkBitmapDevice_DEFINED | 168 #endif // SkBitmapDevice_DEFINED |
OLD | NEW |