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

Unified Diff: services/ui/common/gpu_service.cc

Issue 2096843002: mus+ash: Enable Chrome HW rendering in mus+ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 4 years, 5 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 | « content/renderer/render_thread_impl.cc ('k') | services/ui/gpu/gpu_service_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/common/gpu_service.cc
diff --git a/services/ui/common/gpu_service.cc b/services/ui/common/gpu_service.cc
index 7b7ed5f03cf43c9ac43d7bfb9edd1bc4dd9c3c7d..955035a5aecc99aeece3c1b6e61409b49a0a18c7 100644
--- a/services/ui/common/gpu_service.cc
+++ b/services/ui/common/gpu_service.cc
@@ -89,12 +89,8 @@ void GpuService::EstablishGpuChannel(const base::Closure& callback) {
runner->PostTask(FROM_HERE, callback);
return;
}
-
- base::Closure wrapper_callback =
- IsMainThread() ? callback
- : base::Bind(PostTask, runner, FROM_HERE, callback);
- establish_callbacks_.push_back(wrapper_callback);
-
+ establish_callbacks_.push_back(
+ base::Bind(PostTask, runner, FROM_HERE, callback));
if (!is_establishing_) {
is_establishing_ = true;
main_task_runner_->PostTask(
@@ -219,11 +215,11 @@ void GpuService::EstablishGpuChannelOnMainThreadDone(
is_establishing_ = false;
gpu_channel_ = gpu_channel;
establishing_condition_.Broadcast();
+ gpu_service_.reset();
for (const auto& i : establish_callbacks_)
i.Run();
establish_callbacks_.clear();
- gpu_service_.reset();
}
bool GpuService::IsMainThread() {
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | services/ui/gpu/gpu_service_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698