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

Unified Diff: Source/core/html/HTMLCanvasElement.cpp

Issue 1013803002: SkPaint::FilterLevel -> SkFilterQuality (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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/core/html/HTMLCanvasElement.cpp
diff --git a/Source/core/html/HTMLCanvasElement.cpp b/Source/core/html/HTMLCanvasElement.cpp
index 9820780fedb3332f440d8c933e91fc74a5e4b2b4..83cef7cc45c93cea0dfa2a5a0b7276a36e288373 100644
--- a/Source/core/html/HTMLCanvasElement.cpp
+++ b/Source/core/html/HTMLCanvasElement.cpp
@@ -148,12 +148,12 @@ LayoutObject* HTMLCanvasElement::createLayoutObject(const LayoutStyle& style)
void HTMLCanvasElement::didRecalcStyle(StyleRecalcChange)
{
- SkPaint::FilterLevel filterLevel = computedStyle()->imageRendering() == ImageRenderingPixelated ? SkPaint::kNone_FilterLevel : SkPaint::kLow_FilterLevel;
+ SkFilterQuality FilterQuality = computedStyle()->imageRendering() == ImageRenderingPixelated ? kNone_SkFilterQuality : kLow_SkFilterQuality;
if (is3D()) {
- toWebGLRenderingContextBase(m_context.get())->setFilterLevel(filterLevel);
+ toWebGLRenderingContextBase(m_context.get())->setFilterQuality(filterQuality);
setNeedsCompositingUpdate();
} else if (hasImageBuffer()) {
- m_imageBuffer->setFilterLevel(filterLevel);
+ m_imageBuffer->setFilterQuality(filterQuality);
}
}
@@ -252,7 +252,7 @@ void HTMLCanvasElement::getContext(const String& type, const CanvasContextCreati
}
LayoutStyle* style = computedStyle();
if (style && m_context)
- toWebGLRenderingContextBase(m_context.get())->setFilterLevel(style->imageRendering() == ImageRenderingPixelated ? SkPaint::kNone_FilterLevel : SkPaint::kLow_FilterLevel);
+ toWebGLRenderingContextBase(m_context.get())->setFilterQuality(style->imageRendering() == ImageRenderingPixelated ? kNone_SkFilterQuality : kLow_SkFilterQuality);
setNeedsCompositingUpdate();
updateExternallyAllocatedMemory();
} else if (!m_context->is3d()) {
@@ -662,7 +662,7 @@ void HTMLCanvasElement::createImageBufferInternal(PassOwnPtr<ImageBufferSurface>
document().updateRenderTreeIfNeeded();
LayoutStyle* style = computedStyle();
- m_imageBuffer->setFilterLevel((style && (style->imageRendering() == ImageRenderingPixelated)) ? SkPaint::kNone_FilterLevel : SkPaint::kLow_FilterLevel);
+ m_imageBuffer->setFilterQuality((style && (style->imageRendering() == ImageRenderingPixelated)) ? kNone_SkFilterQuality : kLow_SkFilterQuality);
m_didFailToCreateImageBuffer = false;

Powered by Google App Engine
This is Rietveld 408576698