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

Side by Side Diff: src/pipe/SkGPipeWrite.cpp

Issue 1104863003: Update {virtual,override} to follow C++11 style in src/pipe. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 7 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 | no next file » | 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 2011 Google Inc. 3 * Copyright 2011 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 "SkAnnotation.h" 9 #include "SkAnnotation.h"
10 #include "SkBitmapDevice.h" 10 #include "SkBitmapDevice.h"
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 243
244 protected: 244 protected:
245 void willSave() override; 245 void willSave() override;
246 SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveFlags) ov erride; 246 SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveFlags) ov erride;
247 void willRestore() override; 247 void willRestore() override;
248 248
249 void didConcat(const SkMatrix&) override; 249 void didConcat(const SkMatrix&) override;
250 void didSetMatrix(const SkMatrix&) override; 250 void didSetMatrix(const SkMatrix&) override;
251 251
252 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override; 252 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) override;
253 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS calar y, 253 void onDrawText(const void* text, size_t byteLength, SkScalar x, SkScalar y,
254 const SkPaint&) override; 254 const SkPaint&) override;
255 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin t pos[], 255 void onDrawPosText(const void* text, size_t byteLength, const SkPoint pos[],
256 const SkPaint&) override; 256 const SkPaint&) override;
257 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca lar xpos[], 257 void onDrawPosTextH(const void* text, size_t byteLength, const SkScalar xpos [],
258 SkScalar constY, const SkPaint&) override; 258 SkScalar constY, const SkPaint&) override;
259 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP ath& path, 259 void onDrawTextOnPath(const void* text, size_t byteLength, const SkPath& pat h,
260 const SkMatrix* matrix, const SkPaint&) overri de; 260 const SkMatrix* matrix, const SkPaint&) override;
261 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, 261 void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y,
262 const SkPaint& paint) override; 262 const SkPaint& paint) override;
263 virtual void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4], 263 void onDrawPatch(const SkPoint cubics[12], const SkColor colors[4],
264 const SkPoint texCoords[4], SkXfermode* xmode, 264 const SkPoint texCoords[4], SkXfermode* xmode,
265 const SkPaint& paint) override; 265 const SkPaint& paint) override;
266 void onDrawPaint(const SkPaint&) override; 266 void onDrawPaint(const SkPaint&) override;
267 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain t&) override; 267 void onDrawPoints(PointMode, size_t count, const SkPoint pts[], const SkPain t&) override;
268 void onDrawRect(const SkRect&, const SkPaint&) override; 268 void onDrawRect(const SkRect&, const SkPaint&) override;
269 void onDrawOval(const SkRect&, const SkPaint&) override; 269 void onDrawOval(const SkRect&, const SkPaint&) override;
270 void onDrawRRect(const SkRRect&, const SkPaint&) override; 270 void onDrawRRect(const SkRRect&, const SkPaint&) override;
271 void onDrawPath(const SkPath&, const SkPaint&) override; 271 void onDrawPath(const SkPath&, const SkPaint&) override;
272 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) override; 272 void onDrawBitmap(const SkBitmap&, SkScalar left, SkScalar top, const SkPain t*) override;
273 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*, 273 void onDrawBitmapRect(const SkBitmap&, const SkRect* src, const SkRect& dst, const SkPaint*,
274 DrawBitmapRectFlags flags) override; 274 DrawBitmapRectFlags flags) override;
275 #if 0 275 #if 0
(...skipping 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after
1330 return fCanvas->shuttleBitmap(bitmap, slot); 1330 return fCanvas->shuttleBitmap(bitmap, slot);
1331 } 1331 }
1332 1332
1333 void BitmapShuttle::removeCanvas() { 1333 void BitmapShuttle::removeCanvas() {
1334 if (NULL == fCanvas) { 1334 if (NULL == fCanvas) {
1335 return; 1335 return;
1336 } 1336 }
1337 fCanvas->unref(); 1337 fCanvas->unref();
1338 fCanvas = NULL; 1338 fCanvas = NULL;
1339 } 1339 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698