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

Side by Side Diff: src/utils/SkDeferredCanvas.cpp

Issue 1099333004: Update {virtual,override} to follow C++11 style in src/utils. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 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 | src/utils/SkEventTracer.cpp » ('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 #include "SkDeferredCanvas.h" 9 #include "SkDeferredCanvas.h"
10 10
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 168
169 protected: 169 protected:
170 const SkBitmap& onAccessBitmap() override; 170 const SkBitmap& onAccessBitmap() override;
171 bool onReadPixels(const SkImageInfo&, void*, size_t, int x, int y) override; 171 bool onReadPixels(const SkImageInfo&, void*, size_t, int x, int y) override;
172 bool onWritePixels(const SkImageInfo&, const void*, size_t, int x, int y) ov erride; 172 bool onWritePixels(const SkImageInfo&, const void*, size_t, int x, int y) ov erride;
173 173
174 // None of the following drawing methods should ever get called on the 174 // None of the following drawing methods should ever get called on the
175 // deferred device 175 // deferred device
176 void drawPaint(const SkDraw&, const SkPaint& paint) override 176 void drawPaint(const SkDraw&, const SkPaint& paint) override
177 {SkASSERT(0);} 177 {SkASSERT(0);}
178 virtual void drawPoints(const SkDraw&, SkCanvas::PointMode mode, 178 void drawPoints(const SkDraw&, SkCanvas::PointMode mode,
179 size_t count, const SkPoint[], 179 size_t count, const SkPoint[],
180 const SkPaint& paint) override 180 const SkPaint& paint) override
181 {SkASSERT(0);} 181 {SkASSERT(0);}
182 virtual void drawRect(const SkDraw&, const SkRect& r, 182 void drawRect(const SkDraw&, const SkRect& r,
183 const SkPaint& paint) override 183 const SkPaint& paint) override
184 {SkASSERT(0);} 184 {SkASSERT(0);}
185 void drawOval(const SkDraw&, const SkRect&, const SkPaint&) override 185 void drawOval(const SkDraw&, const SkRect&, const SkPaint&) override
186 {SkASSERT(0);} 186 {SkASSERT(0);}
187 virtual void drawRRect(const SkDraw&, const SkRRect& rr, 187 void drawRRect(const SkDraw&, const SkRRect& rr,
188 const SkPaint& paint) override 188 const SkPaint& paint) override
189 {SkASSERT(0);} 189 {SkASSERT(0);}
190 virtual void drawPath(const SkDraw&, const SkPath& path, 190 void drawPath(const SkDraw&, const SkPath& path,
191 const SkPaint& paint, 191 const SkPaint& paint,
192 const SkMatrix* prePathMatrix = NULL, 192 const SkMatrix* prePathMatrix = NULL,
193 bool pathIsMutable = false) override 193 bool pathIsMutable = false) override
194 {SkASSERT(0);} 194 {SkASSERT(0);}
195 virtual void drawBitmap(const SkDraw&, const SkBitmap& bitmap, 195 void drawBitmap(const SkDraw&, const SkBitmap& bitmap,
196 const SkMatrix& matrix, const SkPaint& paint) overri de 196 const SkMatrix& matrix, const SkPaint& paint) override
197 {SkASSERT(0);} 197 {SkASSERT(0);}
198 virtual void drawBitmapRect(const SkDraw&, const SkBitmap&, const SkRect*, 198 void drawBitmapRect(const SkDraw&, const SkBitmap&, const SkRect*,
199 const SkRect&, const SkPaint&, 199 const SkRect&, const SkPaint&,
200 SkCanvas::DrawBitmapRectFlags) override 200 SkCanvas::DrawBitmapRectFlags) override
201 {SkASSERT(0);} 201 {SkASSERT(0);}
202 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap, 202 void drawSprite(const SkDraw&, const SkBitmap& bitmap,
203 int x, int y, const SkPaint& paint) override 203 int x, int y, const SkPaint& paint) override
204 {SkASSERT(0);} 204 {SkASSERT(0);}
205 virtual void drawText(const SkDraw&, const void* text, size_t len, 205 void drawText(const SkDraw&, const void* text, size_t len,
206 SkScalar x, SkScalar y, const SkPaint& paint) overri de 206 SkScalar x, SkScalar y, const SkPaint& paint) override
207 {SkASSERT(0);} 207 {SkASSERT(0);}
208 virtual void drawPosText(const SkDraw&, const void* text, size_t len, 208 void drawPosText(const SkDraw&, const void* text, size_t len,
209 const SkScalar pos[], int scalarsPerPos, 209 const SkScalar pos[], int scalarsPerPos,
210 const SkPoint& offset, const SkPaint& paint) overri de 210 const SkPoint& offset, const SkPaint& paint) override
211 {SkASSERT(0);} 211 {SkASSERT(0);}
212 virtual void drawTextOnPath(const SkDraw&, const void* text, 212 void drawTextOnPath(const SkDraw&, const void* text,
213 size_t len, const SkPath& path, 213 size_t len, const SkPath& path,
214 const SkMatrix* matrix, 214 const SkMatrix* matrix,
215 const SkPaint& paint) override 215 const SkPaint& paint) override
216 {SkASSERT(0);} 216 {SkASSERT(0);}
217 virtual void drawVertices(const SkDraw&, SkCanvas::VertexMode, 217 void drawVertices(const SkDraw&, SkCanvas::VertexMode,
218 int vertexCount, const SkPoint verts[], 218 int vertexCount, const SkPoint verts[],
219 const SkPoint texs[], const SkColor colors[], 219 const SkPoint texs[], const SkColor colors[],
220 SkXfermode* xmode, const uint16_t indices[], 220 SkXfermode* xmode, const uint16_t indices[],
221 int indexCount, const SkPaint& paint) override 221 int indexCount, const SkPaint& paint) override
222 {SkASSERT(0);} 222 {SkASSERT(0);}
223 virtual void drawPatch(const SkDraw&, const SkPoint cubics[12], const SkColo r colors[4], 223 void drawPatch(const SkDraw&, const SkPoint cubics[12], const SkColor colors [4],
224 const SkPoint texCoords[4], SkXfermode* xmode, 224 const SkPoint texCoords[4], SkXfermode* xmode,
225 const SkPaint& paint) override 225 const SkPaint& paint) override
226 {SkASSERT(0);} 226 {SkASSERT(0);}
227 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, 227 void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y,
228 const SkPaint&) override 228 const SkPaint&) override
229 {SkASSERT(0);} 229 {SkASSERT(0);}
230 230
231 void lockPixels() override {} 231 void lockPixels() override {}
232 void unlockPixels() override {} 232 void unlockPixels() override {}
233 233
234 bool canHandleImageFilter(const SkImageFilter*) override { 234 bool canHandleImageFilter(const SkImageFilter*) override {
235 return false; 235 return false;
236 } 236 }
237 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, 237 bool filterImage(const SkImageFilter*, const SkBitmap&,
238 const SkImageFilter::Context&, SkBitmap*, SkIPoint* ) override { 238 const SkImageFilter::Context&, SkBitmap*, SkIPoint*) overri de {
239 return false; 239 return false;
240 } 240 }
241 241
242 private: 242 private:
243 void flush() override; 243 void flush() override;
244 void replaceBitmapBackendForRasterSurface(const SkBitmap&) override {} 244 void replaceBitmapBackendForRasterSurface(const SkBitmap&) override {}
245 245
246 void beginRecording(); 246 void beginRecording();
247 void init(); 247 void init();
248 void aboutToDraw(); 248 void aboutToDraw();
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) { 928 SkDrawFilter* SkDeferredCanvas::setDrawFilter(SkDrawFilter* filter) {
929 this->drawingCanvas()->setDrawFilter(filter); 929 this->drawingCanvas()->setDrawFilter(filter);
930 this->INHERITED::setDrawFilter(filter); 930 this->INHERITED::setDrawFilter(filter);
931 this->recordedDrawCommand(); 931 this->recordedDrawCommand();
932 return filter; 932 return filter;
933 } 933 }
934 934
935 SkCanvas* SkDeferredCanvas::canvasForDrawIter() { 935 SkCanvas* SkDeferredCanvas::canvasForDrawIter() {
936 return this->drawingCanvas(); 936 return this->drawingCanvas();
937 } 937 }
OLDNEW
« no previous file with comments | « no previous file | src/utils/SkEventTracer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698