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

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

Issue 1172693002: remove subclassing from ImageFilter::Proxy (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 6 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/SkDevice.h » ('j') | src/core/SkImageFilter.cpp » ('J')
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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 bool onAccessPixels(SkPixmap*) override; 122 bool onAccessPixels(SkPixmap*) override;
123 void onAttachToCanvas(SkCanvas*) override; 123 void onAttachToCanvas(SkCanvas*) override;
124 void onDetachFromCanvas() override; 124 void onDetachFromCanvas() override;
125 125
126 private: 126 private:
127 friend class SkCanvas; 127 friend class SkCanvas;
128 friend struct DeviceCM; //for setMatrixClip 128 friend struct DeviceCM; //for setMatrixClip
129 friend class SkDraw; 129 friend class SkDraw;
130 friend class SkDrawIter; 130 friend class SkDrawIter;
131 friend class SkDeviceFilteredPaint; 131 friend class SkDeviceFilteredPaint;
132 friend class SkDeviceImageFilterProxy;
133 132
134 friend class SkSurface_Raster; 133 friend class SkSurface_Raster;
135 134
136 // used to change the backend's pixels (and possibly config/rowbytes) 135 // used to change the backend's pixels (and possibly config/rowbytes)
137 // but cannot change the width/height, so there should be no change to 136 // but cannot change the width/height, so there should be no change to
138 // any clip information. 137 // any clip information.
139 void replaceBitmapBackendForRasterSurface(const SkBitmap&) override; 138 void replaceBitmapBackendForRasterSurface(const SkBitmap&) override;
140 139
141 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override; 140 SkBaseDevice* onCreateDevice(const CreateInfo&, const SkPaint*) override;
142 141
143 SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) override; 142 SkSurface* newSurface(const SkImageInfo&, const SkSurfaceProps&) override;
144 143
145 SkImageFilter::Cache* getImageFilterCache() override; 144 SkImageFilter::Cache* getImageFilterCache() override;
146 145
147 SkBitmap fBitmap; 146 SkBitmap fBitmap;
148 147
149 void setNewSize(const SkISize&); // Used by SkCanvas for resetForNextPictur e(). 148 void setNewSize(const SkISize&); // Used by SkCanvas for resetForNextPictur e().
150 149
151 typedef SkBaseDevice INHERITED; 150 typedef SkBaseDevice INHERITED;
152 }; 151 };
153 152
154 #endif // SkBitmapDevice_DEFINED 153 #endif // SkBitmapDevice_DEFINED
OLDNEW
« no previous file with comments | « no previous file | include/core/SkDevice.h » ('j') | src/core/SkImageFilter.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698