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

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

Issue 1150093003: Move GLES2, GPU & Surfaces into the ViewManager directory. This does not merge the applications, th… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 7 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/gles2/command_buffer_impl.h" 5 #include "components/view_manager/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/gles2/command_buffer_driver.h" 9 #include "components/view_manager/gles2/command_buffer_driver.h"
10 #include "components/gles2/command_buffer_impl_observer.h" 10 #include "components/view_manager/gles2/command_buffer_impl_observer.h"
11 #include "gpu/command_buffer/service/sync_point_manager.h" 11 #include "gpu/command_buffer/service/sync_point_manager.h"
12 12
13 namespace gles2 { 13 namespace gles2 {
14 namespace { 14 namespace {
15 void DestroyDriver(scoped_ptr<CommandBufferDriver> driver) { 15 void DestroyDriver(scoped_ptr<CommandBufferDriver> driver) {
16 // Just let ~scoped_ptr run. 16 // Just let ~scoped_ptr run.
17 } 17 }
18 18
19 void RunCallback(const mojo::Callback<void()>& callback) { 19 void RunCallback(const mojo::Callback<void()>& callback) {
20 callback.Run(); 20 callback.Run();
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 155
156 void CommandBufferImpl::UpdateVSyncParameters(base::TimeTicks timebase, 156 void CommandBufferImpl::UpdateVSyncParameters(base::TimeTicks timebase,
157 base::TimeDelta interval) { 157 base::TimeDelta interval) {
158 if (!viewport_parameter_listener_) 158 if (!viewport_parameter_listener_)
159 return; 159 return;
160 viewport_parameter_listener_->OnVSyncParametersUpdated( 160 viewport_parameter_listener_->OnVSyncParametersUpdated(
161 timebase.ToInternalValue(), interval.ToInternalValue()); 161 timebase.ToInternalValue(), interval.ToInternalValue());
162 } 162 }
163 163
164 } // namespace gles2 164 } // namespace gles2
OLDNEW
« no previous file with comments | « components/view_manager/gles2/command_buffer_impl.h ('k') | components/view_manager/gles2/command_buffer_impl_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698