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

Unified Diff: skia/ext/analysis_canvas.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « skia/ext/analysis_canvas.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/analysis_canvas.cc
diff --git a/skia/ext/analysis_canvas.cc b/skia/ext/analysis_canvas.cc
index 48a09d11f535f01cb4c39b6766f40e9f2f45af00..17e8390e5e06bf9d0ed7604b70ce298b03156207 100644
--- a/skia/ext/analysis_canvas.cc
+++ b/skia/ext/analysis_canvas.cc
@@ -95,17 +95,6 @@ void AnalysisCanvas::SetForceNotTransparent(bool flag) {
is_transparent_ = false;
}
-void AnalysisCanvas::clear(SkColor color) {
- is_transparent_ = (!is_forced_not_transparent_ && SkColorGetA(color) == 0);
-
- if (!is_forced_not_solid_ && SkColorGetA(color) == 255) {
- is_solid_color_ = true;
- color_ = color;
- } else {
- is_solid_color_ = false;
- }
-}
-
void AnalysisCanvas::drawPaint(const SkPaint& paint) {
SkRect rect;
getClipBounds(&rect);
« no previous file with comments | « skia/ext/analysis_canvas.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698