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

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

Issue 733343005: clear() is now an alias for drawPaint, and will be deprecated as a virtual (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 12 matching lines...) Expand all
23 // Returns true when a SkColor can be used to represent result. 23 // Returns true when a SkColor can be used to represent result.
24 bool GetColorIfSolid(SkColor* color) const; 24 bool GetColorIfSolid(SkColor* color) const;
25 25
26 void SetForceNotSolid(bool flag); 26 void SetForceNotSolid(bool flag);
27 void SetForceNotTransparent(bool flag); 27 void SetForceNotTransparent(bool flag);
28 28
29 // SkDrawPictureCallback override. 29 // SkDrawPictureCallback override.
30 bool abortDrawing() override; 30 bool abortDrawing() override;
31 31
32 // SkCanvas overrides. 32 // SkCanvas overrides.
33 void clear(SkColor) override;
34 void drawPaint(const SkPaint& paint) override; 33 void drawPaint(const SkPaint& paint) override;
35 void drawPoints(PointMode, 34 void drawPoints(PointMode,
36 size_t count, 35 size_t count,
37 const SkPoint pts[], 36 const SkPoint pts[],
38 const SkPaint&) override; 37 const SkPaint&) override;
39 void drawOval(const SkRect&, const SkPaint&) override; 38 void drawOval(const SkRect&, const SkPaint&) override;
40 void drawRect(const SkRect&, const SkPaint&) override; 39 void drawRect(const SkRect&, const SkPaint&) override;
41 void drawRRect(const SkRRect&, const SkPaint&) override; 40 void drawRRect(const SkRRect&, const SkPaint&) override;
42 void drawPath(const SkPath& path, const SkPaint&) override; 41 void drawPath(const SkPath& path, const SkPaint&) override;
43 void drawBitmap(const SkBitmap&, 42 void drawBitmap(const SkBitmap&,
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 bool is_solid_color_; 128 bool is_solid_color_;
130 SkColor color_; 129 SkColor color_;
131 bool is_transparent_; 130 bool is_transparent_;
132 int draw_op_count_; 131 int draw_op_count_;
133 }; 132 };
134 133
135 } // namespace skia 134 } // namespace skia
136 135
137 #endif // SKIA_EXT_ANALYSIS_CANVAS_H_ 136 #endif // SKIA_EXT_ANALYSIS_CANVAS_H_
138 137
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