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

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

Issue 728433002: Revert of move to modify onCreateDevice virtual (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month 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 | « no previous file | include/core/SkDevice.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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 friend class SkDeviceFilteredPaint; 146 friend class SkDeviceFilteredPaint;
147 friend class SkDeviceImageFilterProxy; 147 friend class SkDeviceImageFilterProxy;
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* onCreateCompatibleDevice(const CreateInfo&) SK_OVERRID E; 156 virtual SkBaseDevice* onCreateDevice(const SkImageInfo&, Usage) SK_OVERRIDE;
157 157
158 virtual SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) 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
OLDNEW
« no previous file with comments | « no previous file | include/core/SkDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698