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

Side by Side Diff: cc/layers/empty_content_layer_client.cc

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again Created 3 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 unified diff | Download patch
« no previous file with comments | « cc/layers/empty_content_layer_client.h ('k') | cc/test/fake_tile_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "cc/layers/empty_content_layer_client.h" 5 #include "cc/layers/empty_content_layer_client.h"
6 6
7 #include "cc/playback/display_item_list.h" 7 #include "cc/playback/display_item_list.h"
8 #include "ui/gfx/geometry/rect.h" 8 #include "ui/gfx/geometry/rect.h"
9 9
10 namespace cc { 10 namespace cc {
11 11
12 namespace { 12 namespace {
13 base::LazyInstance<EmptyContentLayerClient> g_empty_content_layer_client = 13 base::LazyInstance<EmptyContentLayerClient>::DestructorAtExit
14 LAZY_INSTANCE_INITIALIZER; 14 g_empty_content_layer_client = LAZY_INSTANCE_INITIALIZER;
15 } 15 }
16 16
17 // static 17 // static
18 ContentLayerClient* EmptyContentLayerClient::GetInstance() { 18 ContentLayerClient* EmptyContentLayerClient::GetInstance() {
19 return g_empty_content_layer_client.Pointer(); 19 return g_empty_content_layer_client.Pointer();
20 } 20 }
21 21
22 EmptyContentLayerClient::EmptyContentLayerClient() {} 22 EmptyContentLayerClient::EmptyContentLayerClient() {}
23 23
24 EmptyContentLayerClient::~EmptyContentLayerClient() {} 24 EmptyContentLayerClient::~EmptyContentLayerClient() {}
(...skipping 10 matching lines...) Expand all
35 35
36 bool EmptyContentLayerClient::FillsBoundsCompletely() const { 36 bool EmptyContentLayerClient::FillsBoundsCompletely() const {
37 return false; 37 return false;
38 } 38 }
39 39
40 size_t EmptyContentLayerClient::GetApproximateUnsharedMemoryUsage() const { 40 size_t EmptyContentLayerClient::GetApproximateUnsharedMemoryUsage() const {
41 return 0u; 41 return 0u;
42 } 42 }
43 43
44 } // namespace cc 44 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/empty_content_layer_client.h ('k') | cc/test/fake_tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698