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

Side by Side Diff: components/mus/gles2/command_buffer_impl.cc

Issue 1351013002: Revert of Mandoline UI Process: Update namespaces and file names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/mus/gles2/command_buffer_impl.h" 5 #include "components/mus/gles2/command_buffer_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "components/mus/gles2/command_buffer_driver.h" 9 #include "components/mus/gles2/command_buffer_driver.h"
10 #include "components/mus/gles2/command_buffer_impl_observer.h" 10 #include "components/mus/gles2/command_buffer_impl_observer.h"
11 #include "components/mus/gles2/gpu_state.h" 11 #include "components/mus/gles2/gpu_state.h"
12 #include "gpu/command_buffer/service/sync_point_manager.h" 12 #include "gpu/command_buffer/service/sync_point_manager.h"
13 13
14 namespace mus { 14 namespace gles2 {
15
16 namespace { 15 namespace {
17
18 void RunCallback(const mojo::Callback<void()>& callback) { 16 void RunCallback(const mojo::Callback<void()>& callback) {
19 callback.Run(); 17 callback.Run();
20 } 18 }
21
22 } // namespace 19 } // namespace
23 20
24 class CommandBufferImpl::CommandBufferDriverClientImpl 21 class CommandBufferImpl::CommandBufferDriverClientImpl
25 : public CommandBufferDriver::Client { 22 : public CommandBufferDriver::Client {
26 public: 23 public:
27 explicit CommandBufferDriverClientImpl(CommandBufferImpl* command_buffer) 24 explicit CommandBufferDriverClientImpl(CommandBufferImpl* command_buffer)
28 : command_buffer_(command_buffer) {} 25 : command_buffer_(command_buffer) {}
29 26
30 private: 27 private:
31 void DidLoseContext() override { command_buffer_->DidLoseContext(); } 28 void DidLoseContext() override { command_buffer_->DidLoseContext(); }
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 160
164 // Objects we own (such as CommandBufferDriver) need to be destroyed on the 161 // Objects we own (such as CommandBufferDriver) need to be destroyed on the
165 // thread we were created on. 162 // thread we were created on.
166 driver_task_runner_->DeleteSoon(FROM_HERE, this); 163 driver_task_runner_->DeleteSoon(FROM_HERE, this);
167 } 164 }
168 165
169 void CommandBufferImpl::DidLoseContext() { 166 void CommandBufferImpl::DidLoseContext() {
170 OnConnectionError(); 167 OnConnectionError();
171 } 168 }
172 169
173 } // namespace mus 170 } // namespace gles2
OLDNEW
« no previous file with comments | « components/mus/gles2/command_buffer_impl.h ('k') | components/mus/gles2/command_buffer_impl_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698