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

Unified Diff: cc/blimp/deserialized_content_layer_client.cc

Issue 2397843003: cc/blimp: Add (de)-serialization for PictureLayer and ScrollbarLayer. (Closed)
Patch Set: Addressed comments 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
« no previous file with comments | « cc/blimp/deserialized_content_layer_client.h ('k') | cc/blimp/layer_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..6d52e4ad6b8393b25f964459524851be3e23c53f
--- /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_ = std::move(display_list);
+ 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
« no previous file with comments | « cc/blimp/deserialized_content_layer_client.h ('k') | cc/blimp/layer_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698