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

Side by Side Diff: include/utils/SkNWayCanvas.h

Issue 806653007: Fix up all the easy virtual ... SK_OVERRIDE cases. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 11 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 | « include/utils/SkLuaCanvas.h ('k') | include/utils/SkPictureUtils.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 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 #ifndef SkNWayCanvas_DEFINED 9 #ifndef SkNWayCanvas_DEFINED
10 #define SkNWayCanvas_DEFINED 10 #define SkNWayCanvas_DEFINED
11 11
12 #include "SkCanvas.h" 12 #include "SkCanvas.h"
13 13
14 class SK_API SkNWayCanvas : public SkCanvas { 14 class SK_API SkNWayCanvas : public SkCanvas {
15 public: 15 public:
16 SkNWayCanvas(int width, int height); 16 SkNWayCanvas(int width, int height);
17 virtual ~SkNWayCanvas(); 17 virtual ~SkNWayCanvas();
18 18
19 virtual void addCanvas(SkCanvas*); 19 virtual void addCanvas(SkCanvas*);
20 virtual void removeCanvas(SkCanvas*); 20 virtual void removeCanvas(SkCanvas*);
21 virtual void removeAll(); 21 virtual void removeAll();
22 22
23 /////////////////////////////////////////////////////////////////////////// 23 ///////////////////////////////////////////////////////////////////////////
24 // These are forwarded to the N canvases we're referencing 24 // These are forwarded to the N canvases we're referencing
25 25
26 virtual SkDrawFilter* setDrawFilter(SkDrawFilter*) SK_OVERRIDE; 26 SkDrawFilter* setDrawFilter(SkDrawFilter*) SK_OVERRIDE;
27 27
28 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; 28 void beginCommentGroup(const char* description) SK_OVERRIDE;
29 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; 29 void addComment(const char* kywd, const char* value) SK_OVERRIDE;
30 virtual void endCommentGroup() SK_OVERRIDE; 30 void endCommentGroup() SK_OVERRIDE;
31 31
32 protected: 32 protected:
33 SkTDArray<SkCanvas*> fList; 33 SkTDArray<SkCanvas*> fList;
34 34
35 virtual void willSave() SK_OVERRIDE; 35 void willSave() SK_OVERRIDE;
36 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF lags) SK_OVERRIDE; 36 SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveFlags) SK _OVERRIDE;
37 virtual void willRestore() SK_OVERRIDE; 37 void willRestore() SK_OVERRIDE;
38 38
39 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; 39 void didConcat(const SkMatrix&) SK_OVERRIDE;
40 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; 40 void didSetMatrix(const SkMatrix&) SK_OVERRIDE;
41 41
42 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK _OVERRIDE; 42 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK_OVERRID E;
43 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS calar y, 43 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS calar y,
44 const SkPaint&) SK_OVERRIDE; 44 const SkPaint&) SK_OVERRIDE;
45 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin t pos[], 45 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin t pos[],
46 const SkPaint&) SK_OVERRIDE; 46 const SkPaint&) SK_OVERRIDE;
47 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca lar xpos[], 47 virtual void onDrawPosTextH(const void* text, size_t byteLength, const SkSca lar xpos[],
48 SkScalar constY, const SkPaint&) SK_OVERRIDE; 48 SkScalar constY, const SkPaint&) SK_OVERRIDE;
49 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP ath& path, 49 virtual void onDrawTextOnPath(const void* text, size_t byteLength, const SkP ath& path,
50 const SkMatrix* matrix, const SkPaint&) SK_OVE RRIDE; 50 const SkMatrix* matrix, const SkPaint&) SK_OVE RRIDE;
51 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y, 51 virtual void onDrawTextBlob(const SkTextBlob* blob, SkScalar x, SkScalar y,
52 const SkPaint& paint) SK_OVERRIDE; 52 const SkPaint& paint) SK_OVERRIDE;
(...skipping 15 matching lines...) Expand all
68 const SkPaint*) SK_OVERRIDE; 68 const SkPaint*) SK_OVERRIDE;
69 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst, 69 void onDrawBitmapNine(const SkBitmap&, const SkIRect& center, const SkRect& dst,
70 const SkPaint*) SK_OVERRIDE; 70 const SkPaint*) SK_OVERRIDE;
71 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) SK_OVE RRIDE; 71 void onDrawSprite(const SkBitmap&, int left, int top, const SkPaint*) SK_OVE RRIDE;
72 void onDrawVertices(VertexMode vmode, int vertexCount, 72 void onDrawVertices(VertexMode vmode, int vertexCount,
73 const SkPoint vertices[], const SkPoint texs[], 73 const SkPoint vertices[], const SkPoint texs[],
74 const SkColor colors[], SkXfermode* xmode, 74 const SkColor colors[], SkXfermode* xmode,
75 const uint16_t indices[], int indexCount, 75 const uint16_t indices[], int indexCount,
76 const SkPaint&) SK_OVERRIDE; 76 const SkPaint&) SK_OVERRIDE;
77 77
78 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE; 78 void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE;
79 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVE RRIDE; 79 void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE;
80 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERR IDE; 80 void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) SK_OVERRIDE;
81 virtual void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE; 81 void onClipRegion(const SkRegion&, SkRegion::Op) SK_OVERRIDE;
82 82
83 virtual void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint* ) SK_OVERRIDE; 83 void onDrawPicture(const SkPicture*, const SkMatrix*, const SkPaint*) SK_OVE RRIDE;
84 84
85 class Iter; 85 class Iter;
86 86
87 private: 87 private:
88 typedef SkCanvas INHERITED; 88 typedef SkCanvas INHERITED;
89 }; 89 };
90 90
91 91
92 #endif 92 #endif
OLDNEW
« no previous file with comments | « include/utils/SkLuaCanvas.h ('k') | include/utils/SkPictureUtils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698