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

Side by Side Diff: mojo/gles2/command_buffer_client_impl.h

Issue 1181013010: Support impl-side painting in Mandoline. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unittest and android gn build Created 5 years, 6 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 MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ 5 #ifndef MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_
6 #define MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ 6 #define MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/atomic_sequence_num.h"
10 #include "base/macros.h" 11 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
12 #include "components/view_manager/public/interfaces/command_buffer.mojom.h" 13 #include "components/view_manager/public/interfaces/command_buffer.mojom.h"
13 #include "gpu/command_buffer/client/gpu_control.h" 14 #include "gpu/command_buffer/client/gpu_control.h"
14 #include "gpu/command_buffer/common/command_buffer.h" 15 #include "gpu/command_buffer/common/command_buffer.h"
15 #include "gpu/command_buffer/common/command_buffer_shared.h" 16 #include "gpu/command_buffer/common/command_buffer_shared.h"
16 #include "mojo/public/cpp/bindings/error_handler.h" 17 #include "mojo/public/cpp/bindings/error_handler.h"
17 18
18 namespace base { 19 namespace base {
19 class RunLoop; 20 class RunLoop;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 scoped_ptr<SyncClientImpl> sync_client_impl_; 96 scoped_ptr<SyncClientImpl> sync_client_impl_;
96 scoped_ptr<SyncPointClientImpl> sync_point_client_impl_; 97 scoped_ptr<SyncPointClientImpl> sync_point_client_impl_;
97 98
98 gpu::Capabilities capabilities_; 99 gpu::Capabilities capabilities_;
99 State last_state_; 100 State last_state_;
100 mojo::ScopedSharedBufferHandle shared_state_handle_; 101 mojo::ScopedSharedBufferHandle shared_state_handle_;
101 gpu::CommandBufferSharedState* shared_state_; 102 gpu::CommandBufferSharedState* shared_state_;
102 int32_t last_put_offset_; 103 int32_t last_put_offset_;
103 int32_t next_transfer_buffer_id_; 104 int32_t next_transfer_buffer_id_;
104 105
106 // Image IDs are allocated in sequence.
107 base::AtomicSequenceNumber next_image_id_;
piman 2015/06/15 18:14:33 nit: shouldn't need to be atomic, this class shoul
jam 2015/06/15 22:06:02 Done.
108
105 const MojoAsyncWaiter* async_waiter_; 109 const MojoAsyncWaiter* async_waiter_;
106 }; 110 };
107 111
108 } // gles2 112 } // gles2
109 113
110 #endif // MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ 114 #endif // MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698