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

Side by Side Diff: blimp/client/compositor/blimp_compositor.cc

Issue 1385043002: cc: Remove SetLayerTreeHostClientReady() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@startcomp
Patch Set: sky's offline comment Created 5 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
« no previous file with comments | « no previous file | cc/layers/delegated_renderer_layer_impl_unittest.cc » ('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 "blimp/client/compositor/blimp_compositor.h" 5 #include "blimp/client/compositor/blimp_compositor.h"
6 6
7 #include "base/bind_helpers.h" 7 #include "base/bind_helpers.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 params.task_graph_runner = g_task_graph_runner.Pointer(); 61 params.task_graph_runner = g_task_graph_runner.Pointer();
62 params.main_task_runner = base::ThreadTaskRunnerHandle::Get(); 62 params.main_task_runner = base::ThreadTaskRunnerHandle::Get();
63 params.settings = settings_.get(); 63 params.settings = settings_.get();
64 64
65 // TODO(dtrainor): Swap this out with the remote client proxy when 65 // TODO(dtrainor): Swap this out with the remote client proxy when
66 // implemented. 66 // implemented.
67 host_ = 67 host_ =
68 cc::LayerTreeHost::CreateThreaded(GetCompositorTaskRunner(), &params); 68 cc::LayerTreeHost::CreateThreaded(GetCompositorTaskRunner(), &params);
69 69
70 host_->SetVisible(true); 70 host_->SetVisible(true);
71 host_->SetLayerTreeHostClientReady();
72 host_->SetViewportSize(viewport_size_); 71 host_->SetViewportSize(viewport_size_);
73 host_->SetDeviceScaleFactor(device_scale_factor_); 72 host_->SetDeviceScaleFactor(device_scale_factor_);
74 73
75 // Build the root Layer. 74 // Build the root Layer.
76 scoped_refptr<cc::Layer> root(cc::Layer::Create(cc::LayerSettings())); 75 scoped_refptr<cc::Layer> root(cc::Layer::Create(cc::LayerSettings()));
77 host_->SetRootLayer(root); 76 host_->SetRootLayer(root);
78 77
79 // For testing, set the dummy Layer. 78 // For testing, set the dummy Layer.
80 g_dummy_layer_driver.Pointer()->SetParentLayer(root); 79 g_dummy_layer_driver.Pointer()->SetParentLayer(root);
81 80
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 task_runner->PostTask( 159 task_runner->PostTask(
161 FROM_HERE, 160 FROM_HERE,
162 base::Bind(base::IgnoreResult(&base::ThreadRestrictions::SetIOAllowed), 161 base::Bind(base::IgnoreResult(&base::ThreadRestrictions::SetIOAllowed),
163 false)); 162 false));
164 // TODO(dtrainor): Determine whether or not we can disallow waiting. 163 // TODO(dtrainor): Determine whether or not we can disallow waiting.
165 164
166 return task_runner; 165 return task_runner;
167 } 166 }
168 167
169 } // namespace blimp 168 } // namespace blimp
OLDNEW
« no previous file with comments | « no previous file | cc/layers/delegated_renderer_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698