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

Side by Side Diff: services/gles2/command_buffer_impl.cc

Issue 769173002: Move native_viewport and gles2 service impls to //services (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « services/gles2/command_buffer_impl.h ('k') | services/gles2/command_buffer_type_conversions.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 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 "mojo/services/gles2/command_buffer_impl.h" 5 #include "services/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 "gpu/command_buffer/service/sync_point_manager.h" 9 #include "gpu/command_buffer/service/sync_point_manager.h"
10 #include "mojo/services/gles2/command_buffer_driver.h" 10 #include "services/gles2/command_buffer_driver.h"
11 11
12 namespace mojo { 12 namespace mojo {
13 namespace { 13 namespace {
14 void DestroyDriver(scoped_ptr<CommandBufferDriver> driver) { 14 void DestroyDriver(scoped_ptr<CommandBufferDriver> driver) {
15 // Just let ~scoped_ptr run. 15 // Just let ~scoped_ptr run.
16 } 16 }
17 17
18 void RunCallback(const Callback<void()>& callback) { 18 void RunCallback(const Callback<void()>& callback) {
19 callback.Run(); 19 callback.Run();
20 } 20 }
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 151
152 void CommandBufferImpl::UpdateVSyncParameters(base::TimeTicks timebase, 152 void CommandBufferImpl::UpdateVSyncParameters(base::TimeTicks timebase,
153 base::TimeDelta interval) { 153 base::TimeDelta interval) {
154 if (!viewport_parameter_listener_) 154 if (!viewport_parameter_listener_)
155 return; 155 return;
156 viewport_parameter_listener_->OnVSyncParametersUpdated( 156 viewport_parameter_listener_->OnVSyncParametersUpdated(
157 timebase.ToInternalValue(), interval.ToInternalValue()); 157 timebase.ToInternalValue(), interval.ToInternalValue());
158 } 158 }
159 159
160 } // namespace mojo 160 } // namespace mojo
OLDNEW
« no previous file with comments | « services/gles2/command_buffer_impl.h ('k') | services/gles2/command_buffer_type_conversions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698