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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: cc/blimp/deserialized_content_layer_client.cc
diff --git a/cc/blimp/deserialized_content_layer_client.cc b/cc/blimp/deserialized_content_layer_client.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b3e719dbc52f5d083639d8e0329a0bb66c20fd7c
--- /dev/null
+++ b/cc/blimp/deserialized_content_layer_client.cc
@@ -0,0 +1,39 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "cc/blimp/deserialized_content_layer_client.h"
+
+namespace cc {
+
+DeserializedContentLayerClient::DeserializedContentLayerClient() = default;
+
+DeserializedContentLayerClient::~DeserializedContentLayerClient() = default;
+
+void DeserializedContentLayerClient::UpdateDisplayListAndRecordedViewport(
+ scoped_refptr<DisplayItemList> display_list,
+ gfx::Rect recorded_viewport) {
+ display_list_ = display_list;
vmpstr 2016/10/07 23:50:05 move
Khushal 2016/10/08 00:41:32 Done.
+ recorded_viewport_ = recorded_viewport;
+}
+
+gfx::Rect DeserializedContentLayerClient::PaintableRegion() {
+ return recorded_viewport_;
+}
+
+scoped_refptr<DisplayItemList>
+DeserializedContentLayerClient::PaintContentsToDisplayList(
+ PaintingControlSetting painting_status) {
+ return display_list_;
+}
+
+bool DeserializedContentLayerClient::FillsBoundsCompletely() const {
+ return false;
+}
+
+size_t DeserializedContentLayerClient::GetApproximateUnsharedMemoryUsage()
+ const {
+ return 0;
+}
+
+} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698