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

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

Issue 1346113003: Mandoline: WebGL: Pass context creation attributes to GPU. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 3 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_MUS_GLES2_COMMAND_BUFFER_IMPL_H_ 5 #ifndef COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_
6 #define COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_ 6 #define COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 12 matching lines...) Expand all
23 class CommandBufferImpl : public mojo::CommandBuffer { 23 class CommandBufferImpl : public mojo::CommandBuffer {
24 public: 24 public:
25 CommandBufferImpl(mojo::InterfaceRequest<CommandBuffer> request, 25 CommandBufferImpl(mojo::InterfaceRequest<CommandBuffer> request,
26 scoped_refptr<GpuState> gpu_state, 26 scoped_refptr<GpuState> gpu_state,
27 scoped_ptr<CommandBufferDriver> driver); 27 scoped_ptr<CommandBufferDriver> driver);
28 28
29 // mojo::CommandBuffer: 29 // mojo::CommandBuffer:
30 void Initialize(mojo::CommandBufferSyncClientPtr sync_client, 30 void Initialize(mojo::CommandBufferSyncClientPtr sync_client,
31 mojo::CommandBufferSyncPointClientPtr sync_point_client, 31 mojo::CommandBufferSyncPointClientPtr sync_point_client,
32 mojo::CommandBufferLostContextObserverPtr loss_observer, 32 mojo::CommandBufferLostContextObserverPtr loss_observer,
33 mojo::ScopedSharedBufferHandle shared_state) override; 33 mojo::ScopedSharedBufferHandle shared_state,
34 mojo::Array<int32_t> attribs) override;
34 void SetGetBuffer(int32_t buffer) override; 35 void SetGetBuffer(int32_t buffer) override;
35 void Flush(int32_t put_offset) override; 36 void Flush(int32_t put_offset) override;
36 void MakeProgress(int32_t last_get_offset) override; 37 void MakeProgress(int32_t last_get_offset) override;
37 void RegisterTransferBuffer(int32_t id, 38 void RegisterTransferBuffer(int32_t id,
38 mojo::ScopedSharedBufferHandle transfer_buffer, 39 mojo::ScopedSharedBufferHandle transfer_buffer,
39 uint32_t size) override; 40 uint32_t size) override;
40 void DestroyTransferBuffer(int32_t id) override; 41 void DestroyTransferBuffer(int32_t id) override;
41 void InsertSyncPoint(bool retire) override; 42 void InsertSyncPoint(bool retire) override;
42 void RetireSyncPoint(uint32_t sync_point) override; 43 void RetireSyncPoint(uint32_t sync_point) override;
43 void Echo(const mojo::Callback<void()>& callback) override; 44 void Echo(const mojo::Callback<void()>& callback) override;
(...skipping 29 matching lines...) Expand all
73 mojo::Binding<CommandBuffer> binding_; 74 mojo::Binding<CommandBuffer> binding_;
74 CommandBufferImplObserver* observer_; 75 CommandBufferImplObserver* observer_;
75 base::WeakPtrFactory<CommandBufferImpl> weak_ptr_factory_; 76 base::WeakPtrFactory<CommandBufferImpl> weak_ptr_factory_;
76 77
77 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl); 78 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl);
78 }; 79 };
79 80
80 } // namespace gles2 81 } // namespace gles2
81 82
82 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_ 83 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_
OLDNEW
« no previous file with comments | « components/mus/gles2/command_buffer_driver.cc ('k') | components/mus/gles2/command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698