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

Side by Side Diff: skia/ext/analysis_canvas.h

Issue 492943002: AnalysisCanvas is missing an override for virtual void onClipRegion (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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 | skia/ext/analysis_canvas.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SKIA_EXT_ANALYSIS_CANVAS_H_ 5 #ifndef SKIA_EXT_ANALYSIS_CANVAS_H_
6 #define SKIA_EXT_ANALYSIS_CANVAS_H_ 6 #define SKIA_EXT_ANALYSIS_CANVAS_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "third_party/skia/include/core/SkCanvas.h" 9 #include "third_party/skia/include/core/SkCanvas.h"
10 #include "third_party/skia/include/core/SkPicture.h" 10 #include "third_party/skia/include/core/SkPicture.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 virtual void onClipRect(const SkRect& rect, 78 virtual void onClipRect(const SkRect& rect,
79 SkRegion::Op op, 79 SkRegion::Op op,
80 ClipEdgeStyle edge_style) OVERRIDE; 80 ClipEdgeStyle edge_style) OVERRIDE;
81 virtual void onClipRRect(const SkRRect& rrect, 81 virtual void onClipRRect(const SkRRect& rrect,
82 SkRegion::Op op, 82 SkRegion::Op op,
83 ClipEdgeStyle edge_style) OVERRIDE; 83 ClipEdgeStyle edge_style) OVERRIDE;
84 virtual void onClipPath(const SkPath& path, 84 virtual void onClipPath(const SkPath& path,
85 SkRegion::Op op, 85 SkRegion::Op op,
86 ClipEdgeStyle edge_style) OVERRIDE; 86 ClipEdgeStyle edge_style) OVERRIDE;
87 virtual void onClipRegion(const SkRegion& deviceRgn,
88 SkRegion::Op op) OVERRIDE;
87 89
88 virtual void onDrawText(const void* text, 90 virtual void onDrawText(const void* text,
89 size_t byteLength, 91 size_t byteLength,
90 SkScalar x, 92 SkScalar x,
91 SkScalar y, 93 SkScalar y,
92 const SkPaint&) OVERRIDE; 94 const SkPaint&) OVERRIDE;
93 virtual void onDrawPosText(const void* text, 95 virtual void onDrawPosText(const void* text,
94 size_t byteLength, 96 size_t byteLength,
95 const SkPoint pos[], 97 const SkPoint pos[],
96 const SkPaint&) OVERRIDE; 98 const SkPaint&) OVERRIDE;
97 virtual void onDrawPosTextH(const void* text, 99 virtual void onDrawPosTextH(const void* text,
98 size_t byteLength, 100 size_t byteLength,
99 const SkScalar xpos[], 101 const SkScalar xpos[],
100 SkScalar constY, 102 SkScalar constY,
101 const SkPaint&) OVERRIDE; 103 const SkPaint&) OVERRIDE;
102 virtual void onDrawTextOnPath(const void* text, 104 virtual void onDrawTextOnPath(const void* text,
103 size_t byteLength, 105 size_t byteLength,
104 const SkPath& path, 106 const SkPath& path,
105 const SkMatrix* matrix, 107 const SkMatrix* matrix,
106 const SkPaint&) OVERRIDE; 108 const SkPaint&) OVERRIDE;
107 virtual void onDrawDRRect(const SkRRect& outer, 109 virtual void onDrawDRRect(const SkRRect& outer,
108 const SkRRect& inner, 110 const SkRRect& inner,
109 const SkPaint&) OVERRIDE; 111 const SkPaint&) OVERRIDE;
110 112
111 private: 113 void OnComplexClip();
114
115 private:
112 typedef SkCanvas INHERITED; 116 typedef SkCanvas INHERITED;
113 117
114 int saved_stack_size_; 118 int saved_stack_size_;
115 int force_not_solid_stack_level_; 119 int force_not_solid_stack_level_;
116 int force_not_transparent_stack_level_; 120 int force_not_transparent_stack_level_;
117 121
118 bool is_forced_not_solid_; 122 bool is_forced_not_solid_;
119 bool is_forced_not_transparent_; 123 bool is_forced_not_transparent_;
120 bool is_solid_color_; 124 bool is_solid_color_;
121 SkColor color_; 125 SkColor color_;
122 bool is_transparent_; 126 bool is_transparent_;
123 int draw_op_count_; 127 int draw_op_count_;
124 }; 128 };
125 129
126 } // namespace skia 130 } // namespace skia
127 131
128 #endif // SKIA_EXT_ANALYSIS_CANVAS_H_ 132 #endif // SKIA_EXT_ANALYSIS_CANVAS_H_
129 133
OLDNEW
« no previous file with comments | « no previous file | skia/ext/analysis_canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698