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

Unified Diff: cc/test/fake_tile_manager_client.cc

Issue 322443002: cc: Refactor how picture layers are exposed to the tile manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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_tile_manager_client.cc
diff --git a/cc/test/fake_tile_manager_client.cc b/cc/test/fake_tile_manager_client.cc
index c82aeb00cbe572e675cff590aa70650e6034d7ef..b3f5e8a1c4c0f6ee8cbf5f7f030924fa9aac621f 100644
--- a/cc/test/fake_tile_manager_client.cc
+++ b/cc/test/fake_tile_manager_client.cc
@@ -2,8 +2,26 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <vector>
+
#include "cc/test/fake_tile_manager_client.h"
namespace cc {
+namespace {
+
+base::LazyInstance<std::vector<PictureLayerImpl*> > g_picture_layers;
vmpstr 2014/06/05 22:38:02 Why is this not a member? You need to include base
reveman 2014/06/06 17:27:24 Either is fine. I just put it here because I like
+
+} // namespace
+
+FakeTileManagerClient::FakeTileManagerClient() {
+}
+
+FakeTileManagerClient::~FakeTileManagerClient() {
+}
+
+const std::vector<PictureLayerImpl*>&
+FakeTileManagerClient::GetPictureLayers() {
+ return g_picture_layers.Get();
+}
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698