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

Unified Diff: Source/platform/graphics/ImageBuffer.h

Issue 562583002: Implement image-rendering:pixelated for accelerated 2D canvases. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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/ImageBuffer.h
diff --git a/Source/platform/graphics/ImageBuffer.h b/Source/platform/graphics/ImageBuffer.h
index 522d3ed6cfbbad4b290b5da740f34759721ac829..be9a99470b55c9933623e456f98b4d657995e6e3 100644
--- a/Source/platform/graphics/ImageBuffer.h
+++ b/Source/platform/graphics/ImageBuffer.h
@@ -83,6 +83,7 @@ public:
bool isSurfaceValid() const;
bool restoreSurface() const;
+ void setNearestNeighbor(bool nearestNeighbor) { m_surface->setNearestNeighbor(nearestNeighbor); }
Justin Novosad 2014/09/10 14:28:31 You should use an enum rather than a bool. Somethi
Stephen White 2014/09/10 15:37:09 Good point, but I don't think we should expose Ski
jackhou1 2014/09/11 08:26:31 Used SkPaint::FilterLevel as that's what Interpola
void setIsHidden(bool hidden) { m_surface->setIsHidden(hidden); }
GraphicsContext* context() const;

Powered by Google App Engine
This is Rietveld 408576698