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

Unified Diff: cc/test/tiled_layer_test_common.cc

Issue 817653003: Update from https://crrev.com/309717 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/test/test_web_graphics_context_3d.cc ('k') | cc/trees/damage_tracker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/tiled_layer_test_common.cc
diff --git a/cc/test/tiled_layer_test_common.cc b/cc/test/tiled_layer_test_common.cc
index ca86499811b41f7596015bf208b093c7fbdddb5c..7d810d1ecfbca8bb52a12e59dbe21686d681ba89 100644
--- a/cc/test/tiled_layer_test_common.cc
+++ b/cc/test/tiled_layer_test_common.cc
@@ -99,8 +99,10 @@ void FakeTiledLayer::SetTexturePriorities(
// itself.
bool missing_target_render_surface = !render_target();
- if (missing_target_render_surface)
+ if (missing_target_render_surface) {
CreateRenderSurface();
+ draw_properties().render_target = this;
+ }
TiledLayer::SetTexturePriorities(calculator);
« no previous file with comments | « cc/test/test_web_graphics_context_3d.cc ('k') | cc/trees/damage_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698