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

Unified Diff: components/mus/gles2/command_buffer_driver.h

Issue 1460833002: gpu: Implement the new fence syncs in mojo command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 5 years, 1 month 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
« no previous file with comments | « no previous file | components/mus/gles2/command_buffer_driver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/gles2/command_buffer_driver.h
diff --git a/components/mus/gles2/command_buffer_driver.h b/components/mus/gles2/command_buffer_driver.h
index 8703633f97f1b5f62b6b21f8a79808f486751fb4..e0e5a7faf32da462c013a51f3ca97dc9da98d453 100644
--- a/components/mus/gles2/command_buffer_driver.h
+++ b/components/mus/gles2/command_buffer_driver.h
@@ -19,6 +19,8 @@ namespace gpu {
class CommandBufferService;
class GpuScheduler;
class GpuControlService;
+class SyncPointClient;
+class SyncPointOrderData;
namespace gles2 {
class GLES2Decoder;
}
@@ -70,6 +72,9 @@ class CommandBufferDriver {
void DestroyImage(int32_t id);
bool IsScheduled() const;
bool HasUnprocessedCommands() const;
+ gpu::SyncPointOrderData* sync_point_order_data() {
+ return sync_point_order_data_.get();
+ }
private:
bool MakeCurrent();
@@ -85,12 +90,15 @@ class CommandBufferDriver {
void OnContextLost(uint32_t reason);
void DestroyDecoder();
+ const uint64_t command_buffer_id_;
scoped_ptr<Client> client_;
mojom::CommandBufferSyncClientPtr sync_client_;
mojom::CommandBufferLostContextObserverPtr loss_observer_;
scoped_ptr<gpu::CommandBufferService> command_buffer_;
scoped_ptr<gpu::gles2::GLES2Decoder> decoder_;
scoped_ptr<gpu::GpuScheduler> scheduler_;
+ scoped_refptr<gpu::SyncPointOrderData> sync_point_order_data_;
+ scoped_ptr<gpu::SyncPointClient> sync_point_client_;
scoped_refptr<gfx::GLContext> context_;
scoped_refptr<gfx::GLSurface> surface_;
scoped_refptr<GpuState> gpu_state_;
« no previous file with comments | « no previous file | components/mus/gles2/command_buffer_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698