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

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

Issue 551463004: introduce Props to surface (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add new file Created 6 years, 3 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/gmslides.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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « gyp/gmslides.gypi ('k') | include/core/SkCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698