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

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

Issue 1340983002: Mandoline UI Process: Update namespaces and file names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased 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 gles2 { 14 namespace mus {
15
15 namespace { 16 namespace {
17
16 void RunCallback(const mojo::Callback<void()>& callback) { 18 void RunCallback(const mojo::Callback<void()>& callback) {
17 callback.Run(); 19 callback.Run();
18 } 20 }
21
19 } // namespace 22 } // namespace
20 23
21 class CommandBufferImpl::CommandBufferDriverClientImpl 24 class CommandBufferImpl::CommandBufferDriverClientImpl
22 : public CommandBufferDriver::Client { 25 : public CommandBufferDriver::Client {
23 public: 26 public:
24 explicit CommandBufferDriverClientImpl(CommandBufferImpl* command_buffer) 27 explicit CommandBufferDriverClientImpl(CommandBufferImpl* command_buffer)
25 : command_buffer_(command_buffer) {} 28 : command_buffer_(command_buffer) {}
26 29
27 private: 30 private:
28 void DidLoseContext() override { command_buffer_->DidLoseContext(); } 31 void DidLoseContext() override { command_buffer_->DidLoseContext(); }
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 163
161 // Objects we own (such as CommandBufferDriver) need to be destroyed on the 164 // Objects we own (such as CommandBufferDriver) need to be destroyed on the
162 // thread we were created on. 165 // thread we were created on.
163 driver_task_runner_->DeleteSoon(FROM_HERE, this); 166 driver_task_runner_->DeleteSoon(FROM_HERE, this);
164 } 167 }
165 168
166 void CommandBufferImpl::DidLoseContext() { 169 void CommandBufferImpl::DidLoseContext() {
167 OnConnectionError(); 170 OnConnectionError();
168 } 171 }
169 172
170 } // namespace gles2 173 } // namespace mus
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