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

Unified Diff: cc/test/fake_layer_tree_host_impl.cc

Issue 202763002: Switch to use SharedBitmapManager all the time in cc_unittests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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.cc
diff --git a/cc/test/fake_layer_tree_host_impl.cc b/cc/test/fake_layer_tree_host_impl.cc
index 8c39d2e9ce7e93bb09ed21a7b75f70565a16a84e..309d3c897361ab92caf65d2864e114d2c738a5fe 100644
--- a/cc/test/fake_layer_tree_host_impl.cc
+++ b/cc/test/fake_layer_tree_host_impl.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "cc/test/fake_layer_tree_host_impl.h"
+#include "cc/test/test_shared_bitmap_manager.h"
#include "cc/trees/layer_tree_impl.h"
namespace cc {
@@ -17,6 +18,8 @@ FakeLayerTreeHostImpl::FakeLayerTreeHostImpl(Proxy* proxy)
// Explicitly clear all debug settings.
SetDebugState(LayerTreeDebugState());
SetViewportSize(gfx::Size(100, 100));
+ bitmap_manager_.reset(new TestSharedBitmapManager);
danakj 2014/03/18 23:42:44 This is kinda unfortunate. Can we own it outside t
+ shared_bitmap_manager_ = bitmap_manager_.get();
}
FakeLayerTreeHostImpl::FakeLayerTreeHostImpl(const LayerTreeSettings& settings,
@@ -29,6 +32,8 @@ FakeLayerTreeHostImpl::FakeLayerTreeHostImpl(const LayerTreeSettings& settings,
0) {
// Explicitly clear all debug settings.
SetDebugState(LayerTreeDebugState());
+ bitmap_manager_.reset(new TestSharedBitmapManager);
+ shared_bitmap_manager_ = bitmap_manager_.get();
}
FakeLayerTreeHostImpl::~FakeLayerTreeHostImpl() {}

Powered by Google App Engine
This is Rietveld 408576698