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

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

Issue 340403003: SaveFlags be-gone (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: One more baseurl attempt Created 6 years, 5 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/SkNWayCanvas.h ('k') | src/core/SkBBoxHierarchyRecord.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 #ifndef SkProxyCanvas_DEFINED 8 #ifndef SkProxyCanvas_DEFINED
9 #define SkProxyCanvas_DEFINED 9 #define SkProxyCanvas_DEFINED
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 const uint16_t indices[], int indexCount, 48 const uint16_t indices[], int indexCount,
49 const SkPaint& paint) SK_OVERRIDE; 49 const SkPaint& paint) SK_OVERRIDE;
50 virtual void drawData(const void* data, size_t length) SK_OVERRIDE; 50 virtual void drawData(const void* data, size_t length) SK_OVERRIDE;
51 51
52 virtual void beginCommentGroup(const char* description) SK_OVERRIDE; 52 virtual void beginCommentGroup(const char* description) SK_OVERRIDE;
53 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE; 53 virtual void addComment(const char* kywd, const char* value) SK_OVERRIDE;
54 virtual void endCommentGroup() SK_OVERRIDE; 54 virtual void endCommentGroup() SK_OVERRIDE;
55 55
56 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE; 56 virtual SkDrawFilter* setDrawFilter(SkDrawFilter* filter) SK_OVERRIDE;
57 57
58 // Transitional, to facilitate migrating subclasses to the new willSave API.
59 using SkCanvas::willSave;
60
61 protected: 58 protected:
62 virtual void willSave(SaveFlags) SK_OVERRIDE; 59 virtual void willSave() SK_OVERRIDE;
63 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF lags) SK_OVERRIDE; 60 virtual SaveLayerStrategy willSaveLayer(const SkRect*, const SkPaint*, SaveF lags) SK_OVERRIDE;
64 virtual void willRestore() SK_OVERRIDE; 61 virtual void willRestore() SK_OVERRIDE;
65 62
66 virtual void didConcat(const SkMatrix&) SK_OVERRIDE; 63 virtual void didConcat(const SkMatrix&) SK_OVERRIDE;
67 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE; 64 virtual void didSetMatrix(const SkMatrix&) SK_OVERRIDE;
68 65
69 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK _OVERRIDE; 66 virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&) SK _OVERRIDE;
70 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS calar y, 67 virtual void onDrawText(const void* text, size_t byteLength, SkScalar x, SkS calar y,
71 const SkPaint&) SK_OVERRIDE; 68 const SkPaint&) SK_OVERRIDE;
72 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin t pos[], 69 virtual void onDrawPosText(const void* text, size_t byteLength, const SkPoin t pos[],
(...skipping 10 matching lines...) Expand all
83 80
84 virtual void onDrawPicture(const SkPicture*) SK_OVERRIDE; 81 virtual void onDrawPicture(const SkPicture*) SK_OVERRIDE;
85 82
86 private: 83 private:
87 SkCanvas* fProxy; 84 SkCanvas* fProxy;
88 85
89 typedef SkCanvas INHERITED; 86 typedef SkCanvas INHERITED;
90 }; 87 };
91 88
92 #endif 89 #endif
OLDNEW
« no previous file with comments | « include/utils/SkNWayCanvas.h ('k') | src/core/SkBBoxHierarchyRecord.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698