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

Unified Diff: Source/platform/graphics/gpu/DrawingBuffer.cpp

Issue 1013803002: SkPaint::FilterLevel -> SkFilterQuality (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: I think I caught the last one 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
« no previous file with comments | « Source/platform/graphics/gpu/DrawingBuffer.h ('k') | Source/platform/graphics/skia/SkiaUtils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/gpu/DrawingBuffer.cpp
diff --git a/Source/platform/graphics/gpu/DrawingBuffer.cpp b/Source/platform/graphics/gpu/DrawingBuffer.cpp
index 4c45220249d3ed011910ff35247b7edbb579d706..aa528a3b761c82c8ed8dd9b4e8eaa86145009398 100644
--- a/Source/platform/graphics/gpu/DrawingBuffer.cpp
+++ b/Source/platform/graphics/gpu/DrawingBuffer.cpp
@@ -149,7 +149,7 @@ DrawingBuffer::DrawingBuffer(PassOwnPtr<WebGraphicsContext3D> context,
, m_packAlignment(4)
, m_destructionInProgress(false)
, m_isHidden(false)
- , m_filterLevel(SkPaint::kLow_FilterLevel)
+ , m_filterQuality(kLow_SkFilterQuality)
{
// Used by browser tests to detect the use of a DrawingBuffer.
TRACE_EVENT_INSTANT0("test_gpu", "DrawingBufferCreation");
@@ -203,12 +203,12 @@ void DrawingBuffer::setIsHidden(bool hidden)
freeRecycledMailboxes();
}
-void DrawingBuffer::setFilterLevel(SkPaint::FilterLevel filterLevel)
+void DrawingBuffer::setFilterQuality(SkFilterQuality filterQuality)
{
- if (m_filterLevel != filterLevel) {
- m_filterLevel = filterLevel;
+ if (m_filterQuality != filterQuality) {
+ m_filterQuality = filterQuality;
if (m_layer)
- m_layer->setNearestNeighbor(filterLevel == SkPaint::kNone_FilterLevel);
+ m_layer->setNearestNeighbor(filterQuality == kNone_SkFilterQuality);
}
}
@@ -525,7 +525,7 @@ WebLayer* DrawingBuffer::platformLayer()
m_layer->setOpaque(!m_actualAttributes.alpha);
m_layer->setBlendBackgroundColor(m_actualAttributes.alpha);
m_layer->setPremultipliedAlpha(m_actualAttributes.premultipliedAlpha);
- m_layer->setNearestNeighbor(m_filterLevel == SkPaint::kNone_FilterLevel);
+ m_layer->setNearestNeighbor(m_filterQuality == kNone_SkFilterQuality);
GraphicsLayer::registerContentsLayer(m_layer->layer());
}
« no previous file with comments | « Source/platform/graphics/gpu/DrawingBuffer.h ('k') | Source/platform/graphics/skia/SkiaUtils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698