OLD | NEW |
| (Empty) |
1 // Copyright 2016 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/blimp/deserialized_content_layer_client.h" | |
6 | |
7 namespace cc { | |
8 | |
9 DeserializedContentLayerClient::DeserializedContentLayerClient() = default; | |
10 | |
11 DeserializedContentLayerClient::~DeserializedContentLayerClient() = default; | |
12 | |
13 void DeserializedContentLayerClient::UpdateDisplayListAndRecordedViewport( | |
14 scoped_refptr<DisplayItemList> display_list, | |
15 gfx::Rect recorded_viewport) { | |
16 display_list_ = std::move(display_list); | |
17 recorded_viewport_ = recorded_viewport; | |
18 } | |
19 | |
20 gfx::Rect DeserializedContentLayerClient::PaintableRegion() { | |
21 return recorded_viewport_; | |
22 } | |
23 | |
24 scoped_refptr<DisplayItemList> | |
25 DeserializedContentLayerClient::PaintContentsToDisplayList( | |
26 PaintingControlSetting painting_status) { | |
27 return display_list_; | |
28 } | |
29 | |
30 bool DeserializedContentLayerClient::FillsBoundsCompletely() const { | |
31 return false; | |
32 } | |
33 | |
34 size_t DeserializedContentLayerClient::GetApproximateUnsharedMemoryUsage() | |
35 const { | |
36 return 0; | |
37 } | |
38 | |
39 } // namespace cc | |
OLD | NEW |