OLD | NEW |
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 Loading... |
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 |
OLD | NEW |