Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "cc/layers/empty_content_layer_client.h" | |
| 6 | |
| 7 #include "cc/playback/display_item_list.h" | |
| 8 #include "cc/playback/display_item_list_settings.h" | |
| 9 #include "ui/gfx/geometry/rect.h" | |
| 10 | |
| 11 namespace cc { | |
| 12 | |
| 13 namespace { | |
| 14 base::LazyInstance<EmptyContentLayerClient> g_empty_content_layer_client = | |
| 15 LAZY_INSTANCE_INITIALIZER; | |
| 16 } | |
| 17 | |
| 18 // static | |
| 19 ContentLayerClient* EmptyContentLayerClient::GetInstance() { | |
| 20 return g_empty_content_layer_client.Pointer(); | |
| 21 } | |
| 22 | |
| 23 EmptyContentLayerClient::EmptyContentLayerClient() {} | |
| 24 | |
| 25 EmptyContentLayerClient::~EmptyContentLayerClient() {} | |
| 26 | |
| 27 gfx::Rect EmptyContentLayerClient::PaintableRegion() { | |
| 28 return gfx::Rect(); | |
| 29 } | |
| 30 | |
| 31 scoped_refptr<DisplayItemList> | |
| 32 EmptyContentLayerClient::PaintContentsToDisplayList( | |
| 33 PaintingControlSetting painting_status) { | |
| 34 return DisplayItemList::Create(gfx::Rect(), DisplayItemListSettings()); | |
| 35 } | |
| 36 | |
| 37 bool EmptyContentLayerClient::FillsBoundsCompletely() const { | |
| 38 return false; | |
| 39 } | |
| 40 | |
| 41 size_t EmptyContentLayerClient::GetApproximateUnsharedMemoryUsage() const { | |
| 42 return 0U; | |
|
vmpstr
2015/12/16 04:21:08
nit: 0u (lower case)
David Trainor- moved to gerrit
2015/12/16 19:10:58
Done.
| |
| 43 } | |
| 44 | |
| 45 } // namespace cc | |
| OLD | NEW |