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

Unified Diff: cc/test/layer_tree_pixel_test.h

Issue 2144393003: cc: Allow TestDelegatingOutputSurface to be used for non-pixel tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « cc/surfaces/surface_display_output_surface_unittest.cc ('k') | cc/test/layer_tree_pixel_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/layer_tree_pixel_test.h
diff --git a/cc/test/layer_tree_pixel_test.h b/cc/test/layer_tree_pixel_test.h
index 8a63afbd6fa285f59bdd5227c2566075d9b2c71d..3ab75b4824c8ce64b1cd6ac50941b34e2e77a31a 100644
--- a/cc/test/layer_tree_pixel_test.h
+++ b/cc/test/layer_tree_pixel_test.h
@@ -40,6 +40,7 @@ class LayerTreePixelTest : public LayerTreeTest {
LayerTreePixelTest();
~LayerTreePixelTest() override;
+ // LayerTreeTest overrides.
void InitializeSettings(LayerTreeSettings* settings) override;
std::unique_ptr<OutputSurface> CreateOutputSurface() override;
@@ -81,6 +82,9 @@ class LayerTreePixelTest : public LayerTreeTest {
void Finish();
+ // Allow tests to enlarge the backing texture for a non-root render pass, to
+ // simulate reusing a larger texture from a previous frame for a new
+ // render pass. This should be called before the output surface is bound.
void set_enlarge_texture_amount(const gfx::Size& enlarge_texture_amount) {
enlarge_texture_amount_ = enlarge_texture_amount;
}
« no previous file with comments | « cc/surfaces/surface_display_output_surface_unittest.cc ('k') | cc/test/layer_tree_pixel_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698