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

Unified Diff: public/platform/WebExternalTextureLayer.h

Issue 562583002: Implement image-rendering:pixelated for accelerated 2D canvases. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove printfs, update test comments. Created 6 years, 1 month 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: public/platform/WebExternalTextureLayer.h
diff --git a/public/platform/WebExternalTextureLayer.h b/public/platform/WebExternalTextureLayer.h
index 0fd05bb4228adce05f649337afca098248be0652..8466a306c53bf636ad5df6366d3d07678d00c500 100644
--- a/public/platform/WebExternalTextureLayer.h
+++ b/public/platform/WebExternalTextureLayer.h
@@ -62,6 +62,10 @@ public:
// Sets whether this context should be rate limited by the compositor. Rate limiting works by blocking
// invalidate() and invalidateRect() calls if the compositor is too many frames behind.
virtual void setRateLimitContext(bool) = 0;
+
+ // Sets whether this texture should use nearest neighbor interpolation as
+ // opposed to bilinear. Defaults to false.
+ virtual void setNearestNeighbor(bool) = 0;
Justin Novosad 2014/11/18 16:32:50 I think this is no longer needed since you are now
jackhou1 2014/12/01 07:00:08 IIUC, having this should mean we don't need to res
};
} // namespace blink
« Source/core/html/HTMLCanvasElement.cpp ('K') | « Source/platform/graphics/ImageBufferSurface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698