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

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

Issue 2650303002: cc: Remove the LayerTreeHost abstraction. (Closed)
Patch Set: missed ui Created 3 years, 10 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
« no previous file with comments | « cc/trees/proxy_main.h ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/proxy_main.h" 5 #include "cc/trees/proxy_main.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "base/trace_event/trace_event.h" 11 #include "base/trace_event/trace_event.h"
12 #include "base/trace_event/trace_event_argument.h" 12 #include "base/trace_event/trace_event_argument.h"
13 #include "base/trace_event/trace_event_synthetic_delay.h" 13 #include "base/trace_event/trace_event_synthetic_delay.h"
14 #include "cc/base/completion_event.h" 14 #include "cc/base/completion_event.h"
15 #include "cc/debug/benchmark_instrumentation.h" 15 #include "cc/debug/benchmark_instrumentation.h"
16 #include "cc/debug/devtools_instrumentation.h" 16 #include "cc/debug/devtools_instrumentation.h"
17 #include "cc/output/compositor_frame_sink.h" 17 #include "cc/output/compositor_frame_sink.h"
18 #include "cc/output/swap_promise.h" 18 #include "cc/output/swap_promise.h"
19 #include "cc/resources/ui_resource_manager.h" 19 #include "cc/resources/ui_resource_manager.h"
20 #include "cc/trees/blocking_task_runner.h" 20 #include "cc/trees/blocking_task_runner.h"
21 #include "cc/trees/layer_tree_host_in_process.h" 21 #include "cc/trees/layer_tree_host.h"
22 #include "cc/trees/mutator_host.h" 22 #include "cc/trees/mutator_host.h"
23 #include "cc/trees/proxy_impl.h" 23 #include "cc/trees/proxy_impl.h"
24 #include "cc/trees/scoped_abort_remaining_swap_promises.h" 24 #include "cc/trees/scoped_abort_remaining_swap_promises.h"
25 25
26 namespace cc { 26 namespace cc {
27 27
28 ProxyMain::ProxyMain(LayerTreeHostInProcess* layer_tree_host, 28 ProxyMain::ProxyMain(LayerTreeHost* layer_tree_host,
29 TaskRunnerProvider* task_runner_provider) 29 TaskRunnerProvider* task_runner_provider)
30 : layer_tree_host_(layer_tree_host), 30 : layer_tree_host_(layer_tree_host),
31 task_runner_provider_(task_runner_provider), 31 task_runner_provider_(task_runner_provider),
32 layer_tree_host_id_(layer_tree_host->GetId()), 32 layer_tree_host_id_(layer_tree_host->GetId()),
33 max_requested_pipeline_stage_(NO_PIPELINE_STAGE), 33 max_requested_pipeline_stage_(NO_PIPELINE_STAGE),
34 current_pipeline_stage_(NO_PIPELINE_STAGE), 34 current_pipeline_stage_(NO_PIPELINE_STAGE),
35 final_pipeline_stage_(NO_PIPELINE_STAGE), 35 final_pipeline_stage_(NO_PIPELINE_STAGE),
36 commit_waits_for_activation_(false), 36 commit_waits_for_activation_(false),
37 started_(false), 37 started_(false),
38 defer_commits_(false), 38 defer_commits_(false),
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 478
479 bool ProxyMain::IsImplThread() const { 479 bool ProxyMain::IsImplThread() const {
480 return task_runner_provider_->IsImplThread(); 480 return task_runner_provider_->IsImplThread();
481 } 481 }
482 482
483 base::SingleThreadTaskRunner* ProxyMain::ImplThreadTaskRunner() { 483 base::SingleThreadTaskRunner* ProxyMain::ImplThreadTaskRunner() {
484 return task_runner_provider_->ImplThreadTaskRunner(); 484 return task_runner_provider_->ImplThreadTaskRunner();
485 } 485 }
486 486
487 } // namespace cc 487 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/proxy_main.h ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698