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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <vector>
6
5 #include "cc/test/fake_tile_manager_client.h" 7 #include "cc/test/fake_tile_manager_client.h"
6 8
7 namespace cc { 9 namespace cc {
10 namespace {
11
12 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
13
14 } // namespace
15
16 FakeTileManagerClient::FakeTileManagerClient() {
17 }
18
19 FakeTileManagerClient::~FakeTileManagerClient() {
20 }
21
22 const std::vector<PictureLayerImpl*>&
23 FakeTileManagerClient::GetPictureLayers() {
24 return g_picture_layers.Get();
25 }
8 26
9 } // namespace cc 27 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698