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

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

Issue 912243004: Make all SkSurface_* -related devices all have a device (Closed) Base URL: https://skia.googlesource.com/skia.git@skimage-filters-03-sksurface-set-root-device
Patch Set: Created 5 years, 10 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 | « no previous file | 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 135
136 private: 136 private:
137 friend class SkCanvas; 137 friend class SkCanvas;
138 friend struct DeviceCM; //for setMatrixClip 138 friend struct DeviceCM; //for setMatrixClip
139 friend class SkDraw; 139 friend class SkDraw;
140 friend class SkDrawIter; 140 friend class SkDrawIter;
141 friend class SkDeviceFilteredPaint; 141 friend class SkDeviceFilteredPaint;
142 friend class SkDeviceImageFilterProxy; 142 friend class SkDeviceImageFilterProxy;
143 143
144 friend class SkSurface_Raster; 144 friend class SkSurface_Raster;
145 friend class SkRasterSurfaceDevice;
145 146
146 // used to change the backend's pixels (and possibly config/rowbytes) 147 // used to change the backend's pixels (and possibly config/rowbytes)
147 // but cannot change the width/height, so there should be no change to 148 // but cannot change the width/height, so there should be no change to
148 // any clip information. 149 // any clip information.
149 void replaceBitmapBackendForRasterSurface(const SkBitmap&) SK_OVERRIDE; 150 void replaceBitmapBackendForRasterSurface(const SkBitmap&) SK_OVERRIDE;
150 151
151 SkBaseDevice* onCreateCompatibleDevice(const CreateInfo&) SK_OVERRIDE; 152 SkBaseDevice* onCreateCompatibleDevice(const CreateInfo&) SK_OVERRIDE;
152 153
153 SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) SK_OVERRIDE ; 154 SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) SK_OVERRIDE ;
154 const void* peekPixels(SkImageInfo*, size_t* rowBytes) SK_OVERRIDE; 155 const void* peekPixels(SkImageInfo*, size_t* rowBytes) SK_OVERRIDE;
155 156
156 SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE; 157 SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE;
157 158
158 SkBitmap fBitmap; 159 SkBitmap fBitmap;
159 160
160 typedef SkBaseDevice INHERITED; 161 typedef SkBaseDevice INHERITED;
161 }; 162 };
162 163
163 #endif // SkBitmapDevice_DEFINED 164 #endif // SkBitmapDevice_DEFINED
OLDNEW
« no previous file with comments | « no previous file | include/core/SkCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698