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

Unified Diff: third_party/WebKit/LayoutTests/compositing/scaling/preferred-raster-scale.html

Issue 2410513002: Plumb preferred raster scale for background images from Blink to cc layers. (Closed)
Patch Set: none Created 4 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: third_party/WebKit/LayoutTests/compositing/scaling/preferred-raster-scale.html
diff --git a/third_party/WebKit/LayoutTests/compositing/scaling/preferred-raster-scale.html b/third_party/WebKit/LayoutTests/compositing/scaling/preferred-raster-scale.html
new file mode 100644
index 0000000000000000000000000000000000000000..c035774e333de8e3e56b812929d85cecb4ef8688
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/compositing/scaling/preferred-raster-scale.html
@@ -0,0 +1,23 @@
+<!doctype HTML>
+<div id=target style="will-change: transform; width: 310px; height: 175px; background-size: 100% 100%"></div>
+<pre id=output></pre>
+<script>
+onload = function() {
+ if (window.testRunner) {
+ window.testRunner.waitUntilDone();
+ window.testRunner.dumpAsText();
+ }
+ if (window.internals)
+ window.internals.runtimeFlags.preferredImageRasterScaleEnabled = true;
+
+ var bgImg = new Image();
+ bgImg.src = '../../paint/invalidation/resources/ducky.png';
+ bgImg.onload = function() {
+ target.style.backgroundImage = 'url(' + bgImg.src + ')';
+ if (window.internals)
+ output.innerHTML = window.internals.layerTreeAsText(document);
+ if (window.testRunner)
+ testRunner.notifyDone();
+ };
+}
+</script>
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | third_party/WebKit/LayoutTests/compositing/scaling/preferred-raster-scale-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698