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

Side by Side Diff: cc/blimp/deserialized_content_layer_client.cc

Issue 2397843003: cc/blimp: Add (de)-serialization for PictureLayer and ScrollbarLayer. (Closed)
Patch Set: Fix test Created 4 years, 2 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
OLDNEW
(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_ = display_list;
vmpstr 2016/10/07 23:50:05 move
Khushal 2016/10/08 00:41:32 Done.
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698