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

Unified Diff: cc/test/fake_layer_tree_host_impl.h

Issue 468983002: Still produce quad when tile OOM and on demand raster is not allowed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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: cc/test/fake_layer_tree_host_impl.h
diff --git a/cc/test/fake_layer_tree_host_impl.h b/cc/test/fake_layer_tree_host_impl.h
index 38957a8bbd11d4a58aada83276512b5703d27e36..4a886f0bebc0313c15c90b1c9cc20bdea66ebc94 100644
--- a/cc/test/fake_layer_tree_host_impl.h
+++ b/cc/test/fake_layer_tree_host_impl.h
@@ -7,6 +7,7 @@
#include "cc/test/fake_layer_tree_host_impl_client.h"
#include "cc/test/fake_rendering_stats_instrumentation.h"
+#include "cc/test/fake_tile_manager.h"
#include "cc/trees/layer_tree_host_impl.h"
#include "cc/trees/single_thread_proxy.h"
@@ -31,6 +32,11 @@ class FakeLayerTreeHostImpl : public LayerTreeHostImpl {
virtual base::TimeTicks CurrentFrameTimeTicks() OVERRIDE;
void SetCurrentFrameTimeTicks(base::TimeTicks current_frame_time_ticks);
+ void CreateFakeTileManager() {
+ tile_manager_.reset();
+ tile_manager_ = make_scoped_ptr(new FakeTileManager(this, resource_pool()));
+ }
+
using LayerTreeHostImpl::ActivateSyncTree;
using LayerTreeHostImpl::manage_tiles_needed;

Powered by Google App Engine
This is Rietveld 408576698