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

Unified Diff: LayoutTests/fast/canvas/pixelated-image.html

Issue 562583002: Implement image-rendering:pixelated for accelerated 2D canvases. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Set GL_NEAREST on the texture, invalidate the ImageBuffer and reconstruct the TextureMailbox when f… Created 6 years, 2 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: LayoutTests/fast/canvas/pixelated-image.html
diff --git a/LayoutTests/fast/canvas/pixelated-image.html b/LayoutTests/fast/canvas/pixelated-image.html
new file mode 100644
index 0000000000000000000000000000000000000000..9cf852e8ad54e2be98f86b04f558dc56572a8024
--- /dev/null
+++ b/LayoutTests/fast/canvas/pixelated-image.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<style>
+ img {
+ width: 1000px;
+ height: 1000px;
+ image-rendering: pixelated;
+ transform: translateZ(0);
+ }
+</style>
+<body>
+ <img src="resources/dice_alpha.png">
+</body>
+<script>
+ // Ignore the render tree.
+ if (window.testRunner)
+ window.testRunner.dumpAsTextWithPixelResults();
+</script>

Powered by Google App Engine
This is Rietveld 408576698