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

Unified Diff: Source/platform/graphics/GraphicsContextState.cpp

Issue 907453003: Move overdraw tracking code from GraphicsContext to CanvasRenderingContext2D (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
Index: Source/platform/graphics/GraphicsContextState.cpp
diff --git a/Source/platform/graphics/GraphicsContextState.cpp b/Source/platform/graphics/GraphicsContextState.cpp
index 1dc94d67a50d4da0c9522c686aeb138a2dfad931..4bef933131fb10323aec9ddb52370ff5fe2716f5 100644
--- a/Source/platform/graphics/GraphicsContextState.cpp
+++ b/Source/platform/graphics/GraphicsContextState.cpp
@@ -18,7 +18,6 @@ GraphicsContextState::GraphicsContextState()
, m_saveCount(0)
, m_shouldAntialias(true)
, m_shouldClampToSourceRect(true)
- , m_hasComplexClip(false)
{
m_strokePaint.setStyle(SkPaint::kStroke_Style);
m_strokePaint.setStrokeWidth(SkFloatToScalar(m_strokeData.thickness()));
@@ -53,8 +52,7 @@ GraphicsContextState::GraphicsContextState(const GraphicsContextState& other)
, m_interpolationQuality(other.m_interpolationQuality)
, m_saveCount(0)
, m_shouldAntialias(other.m_shouldAntialias)
- , m_shouldClampToSourceRect(other.m_shouldClampToSourceRect)
- , m_hasComplexClip(other.m_hasComplexClip) { }
+ , m_shouldClampToSourceRect(other.m_shouldClampToSourceRect) { }
void GraphicsContextState::copy(const GraphicsContextState& source)
{
@@ -253,15 +251,4 @@ void GraphicsContextState::setShouldAntialias(bool shouldAntialias)
m_fillPaint.setAntiAlias(shouldAntialias);
}
-bool GraphicsContextState::hasComplexClip() const
-{
- return m_hasComplexClip;
-}
-
-void GraphicsContextState::setHasComplexClip()
-{
- m_hasComplexClip = true;
-}
-
-
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698