| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 friend class SkDrawIter; | 158 friend class SkDrawIter; |
| 159 friend class SkDeviceFilteredPaint; | 159 friend class SkDeviceFilteredPaint; |
| 160 | 160 |
| 161 friend class SkSurface_Raster; | 161 friend class SkSurface_Raster; |
| 162 | 162 |
| 163 // used to change the backend's pixels (and possibly config/rowbytes) | 163 // used to change the backend's pixels (and possibly config/rowbytes) |
| 164 // but cannot change the width/height, so there should be no change to | 164 // but cannot change the width/height, so there should be no change to |
| 165 // any clip information. | 165 // any clip information. |
| 166 void replaceBitmapBackendForRasterSurface(const SkBitmap&) override; | 166 void replaceBitmapBackendForRasterSurface(const SkBitmap&) override; |
| 167 | 167 |
| 168 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override; | 168 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*, |
| 169 SkRasterCanvasLayerAllocator*) override; |
| 169 | 170 |
| 170 sk_sp<SkSurface> makeSurface(const SkImageInfo&, const SkSurfaceProps&) over
ride; | 171 sk_sp<SkSurface> makeSurface(const SkImageInfo&, const SkSurfaceProps&) over
ride; |
| 171 | 172 |
| 172 SkImageFilterCache* getImageFilterCache() override; | 173 SkImageFilterCache* getImageFilterCache() override; |
| 173 | 174 |
| 174 SkBitmap fBitmap; | 175 SkBitmap fBitmap; |
| 175 | 176 |
| 176 void setNewSize(const SkISize&); // Used by SkCanvas for resetForNextPictur
e(). | 177 void setNewSize(const SkISize&); // Used by SkCanvas for resetForNextPictur
e(). |
| 177 | 178 |
| 178 typedef SkBaseDevice INHERITED; | 179 typedef SkBaseDevice INHERITED; |
| 179 }; | 180 }; |
| 180 | 181 |
| 181 #endif // SkBitmapDevice_DEFINED | 182 #endif // SkBitmapDevice_DEFINED |
| OLD | NEW |