Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Side by Side Diff: include/core/SkBitmapDevice.h

Issue 2309483002: WIP RasterCanvasLayerAllocator experiment 2
Patch Set: vend smart pointers to SkCanvas Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gyp/core.gypi ('k') | include/core/SkCanvas.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « gyp/core.gypi ('k') | include/core/SkCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698