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

Unified Diff: third_party/WebKit/Source/platform/graphics/ReplayingCanvas.cpp

Issue 2044643006: DevTools: clear layers using transparent color (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/ReplayingCanvas.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ReplayingCanvas.cpp b/third_party/WebKit/Source/platform/graphics/ReplayingCanvas.cpp
index 0a46cc079eb40ddd50514c83b557ef1deea3dea2..71f5e3c5ab2aa5c25fc9ca3ae3eec47eb306e6b8 100644
--- a/third_party/WebKit/Source/platform/graphics/ReplayingCanvas.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ReplayingCanvas.cpp
@@ -51,7 +51,7 @@ void ReplayingCanvas::updateInRange()
if (m_toStep && step > m_toStep)
m_abortDrawing = true;
if (step == m_fromStep)
- this->SkCanvas::clear(SkColorSetARGB(255, 255, 255, 255)); // FIXME: fill with nine patch instead.
+ this->SkCanvas::clear(SK_ColorTRANSPARENT);
}
bool ReplayingCanvas::abort()
@@ -64,7 +64,7 @@ SkCanvas::SaveLayerStrategy ReplayingCanvas::getSaveLayerStrategy(const SaveLaye
// We're about to create a layer and we have not cleared the device yet.
// Let's clear now, so it has effect on all layers.
if (callCount() <= m_fromStep)
- this->SkCanvas::clear(SkColorSetARGB(255, 255, 255, 255)); // FIXME: fill with nine patch instead.
+ this->SkCanvas::clear(SK_ColorTRANSPARENT);
return this->InterceptingCanvas<ReplayingCanvas>::getSaveLayerStrategy(rec);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698