| 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 "cc/playback/display_item_list_settings.h" | 8 #include "cc/playback/display_item_list_settings.h" |
| 9 #include "ui/gfx/geometry/rect.h" | 9 #include "ui/gfx/geometry/rect.h" |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 EmptyContentLayerClient::~EmptyContentLayerClient() {} | 25 EmptyContentLayerClient::~EmptyContentLayerClient() {} |
| 26 | 26 |
| 27 gfx::Rect EmptyContentLayerClient::PaintableRegion() { | 27 gfx::Rect EmptyContentLayerClient::PaintableRegion() { |
| 28 return gfx::Rect(); | 28 return gfx::Rect(); |
| 29 } | 29 } |
| 30 | 30 |
| 31 scoped_refptr<DisplayItemList> | 31 scoped_refptr<DisplayItemList> |
| 32 EmptyContentLayerClient::PaintContentsToDisplayList( | 32 EmptyContentLayerClient::PaintContentsToDisplayList( |
| 33 PaintingControlSetting painting_status) { | 33 PaintingControlSetting painting_status) { |
| 34 return DisplayItemList::Create(gfx::Rect(), DisplayItemListSettings()); | 34 return DisplayItemList::Create(DisplayItemListSettings()); |
| 35 } | 35 } |
| 36 | 36 |
| 37 bool EmptyContentLayerClient::FillsBoundsCompletely() const { | 37 bool EmptyContentLayerClient::FillsBoundsCompletely() const { |
| 38 return false; | 38 return false; |
| 39 } | 39 } |
| 40 | 40 |
| 41 size_t EmptyContentLayerClient::GetApproximateUnsharedMemoryUsage() const { | 41 size_t EmptyContentLayerClient::GetApproximateUnsharedMemoryUsage() const { |
| 42 return 0u; | 42 return 0u; |
| 43 } | 43 } |
| 44 | 44 |
| 45 } // namespace cc | 45 } // namespace cc |
| OLD | NEW |