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

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

Issue 782693003: Implement image-rendering:pixelated for directly composited images. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@composited
Patch Set: Add TestExpectation for slimmingpaint 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 | « Source/platform/graphics/GraphicsLayer.h ('k') | public/platform/WebImageLayer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/GraphicsLayer.cpp
diff --git a/Source/platform/graphics/GraphicsLayer.cpp b/Source/platform/graphics/GraphicsLayer.cpp
index d3361c17ecccf25635b285de69b916f51119d2de..c4c88d81ea129a52b5fa0a24e4a8c73ee950ea2c 100644
--- a/Source/platform/graphics/GraphicsLayer.cpp
+++ b/Source/platform/graphics/GraphicsLayer.cpp
@@ -1005,6 +1005,12 @@ void GraphicsLayer::setFilters(const FilterOperations& filters)
m_layer->layer()->setFilters(*webFilters);
}
+void GraphicsLayer::setFilterLevel(SkPaint::FilterLevel filterLevel)
+{
+ if (m_imageLayer)
+ m_imageLayer->setNearestNeighbor(filterLevel == SkPaint::kNone_FilterLevel);
+}
+
void GraphicsLayer::setPaintingPhase(GraphicsLayerPaintingPhase phase)
{
if (m_paintingPhase == phase)
« no previous file with comments | « Source/platform/graphics/GraphicsLayer.h ('k') | public/platform/WebImageLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698