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

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: Add tests. 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); }
void setIsHidden(bool hidden) { m_surface->setIsHidden(hidden); }
GraphicsContext* context() const;

Powered by Google App Engine
This is Rietveld 408576698