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

Side by Side Diff: cc/trees/layer_tree_host.cc

Issue 1519293002: Add support for (de)serializing LayerTreeHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added framework for (de)serializing Created 5 years 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
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <stack> 8 #include <stack>
9 #include <string> 9 #include <string>
10 10
(...skipping 17 matching lines...) Expand all
28 #include "cc/debug/frame_viewer_instrumentation.h" 28 #include "cc/debug/frame_viewer_instrumentation.h"
29 #include "cc/debug/rendering_stats_instrumentation.h" 29 #include "cc/debug/rendering_stats_instrumentation.h"
30 #include "cc/input/layer_selection_bound.h" 30 #include "cc/input/layer_selection_bound.h"
31 #include "cc/input/page_scale_animation.h" 31 #include "cc/input/page_scale_animation.h"
32 #include "cc/layers/heads_up_display_layer.h" 32 #include "cc/layers/heads_up_display_layer.h"
33 #include "cc/layers/heads_up_display_layer_impl.h" 33 #include "cc/layers/heads_up_display_layer_impl.h"
34 #include "cc/layers/layer.h" 34 #include "cc/layers/layer.h"
35 #include "cc/layers/layer_iterator.h" 35 #include "cc/layers/layer_iterator.h"
36 #include "cc/layers/layer_settings.h" 36 #include "cc/layers/layer_settings.h"
37 #include "cc/layers/painted_scrollbar_layer.h" 37 #include "cc/layers/painted_scrollbar_layer.h"
38 #include "cc/proto/layer_tree_host.pb.h"
38 #include "cc/resources/ui_resource_request.h" 39 #include "cc/resources/ui_resource_request.h"
39 #include "cc/scheduler/begin_frame_source.h" 40 #include "cc/scheduler/begin_frame_source.h"
40 #include "cc/trees/draw_property_utils.h" 41 #include "cc/trees/draw_property_utils.h"
41 #include "cc/trees/layer_tree_host_client.h" 42 #include "cc/trees/layer_tree_host_client.h"
42 #include "cc/trees/layer_tree_host_common.h" 43 #include "cc/trees/layer_tree_host_common.h"
43 #include "cc/trees/layer_tree_host_impl.h" 44 #include "cc/trees/layer_tree_host_impl.h"
44 #include "cc/trees/layer_tree_impl.h" 45 #include "cc/trees/layer_tree_impl.h"
45 #include "cc/trees/proxy_main.h" 46 #include "cc/trees/proxy_main.h"
46 #include "cc/trees/single_thread_proxy.h" 47 #include "cc/trees/single_thread_proxy.h"
47 #include "cc/trees/tree_synchronizer.h" 48 #include "cc/trees/tree_synchronizer.h"
(...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after
1262 !task_runner_provider_->HasImplThread()); 1263 !task_runner_provider_->HasImplThread());
1263 return compositor_mode_ == CompositorMode::SingleThreaded; 1264 return compositor_mode_ == CompositorMode::SingleThreaded;
1264 } 1265 }
1265 1266
1266 bool LayerTreeHost::IsThreaded() const { 1267 bool LayerTreeHost::IsThreaded() const {
1267 DCHECK(compositor_mode_ != CompositorMode::Threaded || 1268 DCHECK(compositor_mode_ != CompositorMode::Threaded ||
1268 task_runner_provider_->HasImplThread()); 1269 task_runner_provider_->HasImplThread());
1269 return compositor_mode_ == CompositorMode::Threaded; 1270 return compositor_mode_ == CompositorMode::Threaded;
1270 } 1271 }
1271 1272
1273 void LayerTreeHost::ToProtobufForCommit(proto::LayerTreeHost* proto) const {}
1274
1275 void LayerTreeHost::FromProtobufForCommit(const proto::LayerTreeHost& proto) {}
1276
1272 } // namespace cc 1277 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698