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

Unified Diff: Source/platform/graphics/Canvas2DLayerBridge.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/Canvas2DLayerBridge.h
diff --git a/Source/platform/graphics/Canvas2DLayerBridge.h b/Source/platform/graphics/Canvas2DLayerBridge.h
index 3b93e43218888a143ab399bf878e258fa15f5bc3..94f85be624222d600b86fc23d37945ba31da2cf3 100644
--- a/Source/platform/graphics/Canvas2DLayerBridge.h
+++ b/Source/platform/graphics/Canvas2DLayerBridge.h
@@ -74,6 +74,7 @@ public:
WebLayer* layer() const;
Platform3DObject getBackingTexture();
bool isAccelerated() const { return true; }
+ void setNearestNeighbor(bool);
void setIsHidden(bool);
void setImageBuffer(ImageBuffer* imageBuffer) { m_imageBuffer = imageBuffer; }
@@ -110,6 +111,7 @@ protected:
int m_framesSinceMailboxRelease;
bool m_destructionInProgress;
bool m_rateLimitingEnabled;
+ bool m_nearestNeighbor;
bool m_isHidden;
friend class WTF::DoublyLinkedListNode<Canvas2DLayerBridge>;

Powered by Google App Engine
This is Rietveld 408576698