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