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

Unified Diff: components/view_manager/gles2/command_buffer_impl.cc

Issue 1245683004: Mandoline: Merge Surfaces and Views apps (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove context_provider.mojom Created 5 years, 4 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
Index: components/view_manager/gles2/command_buffer_impl.cc
diff --git a/components/view_manager/gles2/command_buffer_impl.cc b/components/view_manager/gles2/command_buffer_impl.cc
index 2a3d131addd560833b1aefd362a9a6c7e5962865..860f430aa3c41e5d4ce629dd2935cf524c9bd85e 100644
--- a/components/view_manager/gles2/command_buffer_impl.cc
+++ b/components/view_manager/gles2/command_buffer_impl.cc
@@ -25,11 +25,6 @@ class CommandBufferImpl::CommandBufferDriverClientImpl
: command_buffer_(command_buffer) {}
private:
- void UpdateVSyncParameters(base::TimeTicks timebase,
- base::TimeDelta interval) override {
- command_buffer_->UpdateVSyncParameters(timebase, interval);
- }
-
void DidLoseContext() override { command_buffer_->DidLoseContext(); }
CommandBufferImpl* command_buffer_;
@@ -39,13 +34,11 @@ class CommandBufferImpl::CommandBufferDriverClientImpl
CommandBufferImpl::CommandBufferImpl(
mojo::InterfaceRequest<mojo::CommandBuffer> request,
- mojo::ViewportParameterListenerPtr listener,
scoped_refptr<GpuState> gpu_state,
scoped_ptr<CommandBufferDriver> driver)
: gpu_state_(gpu_state),
driver_task_runner_(base::MessageLoop::current()->task_runner()),
driver_(driver.Pass()),
- viewport_parameter_listener_(listener.Pass()),
binding_(this),
observer_(nullptr),
weak_ptr_factory_(this) {
@@ -175,12 +168,4 @@ void CommandBufferImpl::DidLoseContext() {
OnConnectionError();
}
-void CommandBufferImpl::UpdateVSyncParameters(base::TimeTicks timebase,
- base::TimeDelta interval) {
- if (!viewport_parameter_listener_)
- return;
- viewport_parameter_listener_->OnVSyncParametersUpdated(
- timebase.ToInternalValue(), interval.ToInternalValue());
-}
-
} // namespace gles2

Powered by Google App Engine
This is Rietveld 408576698