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

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

Issue 1231263003: Share SyncPointManager between ipc and in-process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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 #ifndef COMPONENTS_VIEW_MANAGER_GLES2_COMMAND_BUFFER_IMPL_H_ 5 #ifndef COMPONENTS_VIEW_MANAGER_GLES2_COMMAND_BUFFER_IMPL_H_
6 #define COMPONENTS_VIEW_MANAGER_GLES2_COMMAND_BUFFER_IMPL_H_ 6 #define COMPONENTS_VIEW_MANAGER_GLES2_COMMAND_BUFFER_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "components/view_manager/public/interfaces/command_buffer.mojom.h" 10 #include "components/view_manager/public/interfaces/command_buffer.mojom.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 ~CommandBufferImpl() override; 69 ~CommandBufferImpl() override;
70 70
71 void BindToRequest(mojo::InterfaceRequest<CommandBuffer> request); 71 void BindToRequest(mojo::InterfaceRequest<CommandBuffer> request);
72 72
73 void UpdateVSyncParameters(base::TimeTicks timebase, 73 void UpdateVSyncParameters(base::TimeTicks timebase,
74 base::TimeDelta interval); 74 base::TimeDelta interval);
75 75
76 void OnConnectionError(); 76 void OnConnectionError();
77 77
78 scoped_refptr<gpu::SyncPointManager> sync_point_manager_; 78 gpu::SyncPointManager* sync_point_manager_;
79 scoped_refptr<base::SingleThreadTaskRunner> driver_task_runner_; 79 scoped_refptr<base::SingleThreadTaskRunner> driver_task_runner_;
80 scoped_ptr<CommandBufferDriver> driver_; 80 scoped_ptr<CommandBufferDriver> driver_;
81 mojo::CommandBufferSyncPointClientPtr sync_point_client_; 81 mojo::CommandBufferSyncPointClientPtr sync_point_client_;
82 mojo::ViewportParameterListenerPtr viewport_parameter_listener_; 82 mojo::ViewportParameterListenerPtr viewport_parameter_listener_;
83 mojo::Binding<CommandBuffer> binding_; 83 mojo::Binding<CommandBuffer> binding_;
84 CommandBufferImplObserver* observer_; 84 CommandBufferImplObserver* observer_;
85 85
86 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl); 86 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl);
87 }; 87 };
88 88
89 } // namespace gles2 89 } // namespace gles2
90 90
91 #endif // COMPONENTS_VIEW_MANAGER_GLES2_COMMAND_BUFFER_IMPL_H_ 91 #endif // COMPONENTS_VIEW_MANAGER_GLES2_COMMAND_BUFFER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698