Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ |
| 6 #define GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 118 size_t height, | 118 size_t height, |
| 119 unsigned internalformat, | 119 unsigned internalformat, |
| 120 unsigned usage) override; | 120 unsigned usage) override; |
| 121 uint32 InsertSyncPoint() override; | 121 uint32 InsertSyncPoint() override; |
| 122 uint32 InsertFutureSyncPoint() override; | 122 uint32 InsertFutureSyncPoint() override; |
| 123 void RetireSyncPoint(uint32 sync_point) override; | 123 void RetireSyncPoint(uint32 sync_point) override; |
| 124 void SignalSyncPoint(uint32 sync_point, | 124 void SignalSyncPoint(uint32 sync_point, |
| 125 const base::Closure& callback) override; | 125 const base::Closure& callback) override; |
| 126 void SignalQuery(uint32 query_id, const base::Closure& callback) override; | 126 void SignalQuery(uint32 query_id, const base::Closure& callback) override; |
| 127 void SetSurfaceVisible(bool visible) override; | 127 void SetSurfaceVisible(bool visible) override; |
| 128 uint32 CreateStreamTexture(uint32 texture_id) override; | |
| 129 void SetLock(base::Lock*) override; | 128 void SetLock(base::Lock*) override; |
| 130 bool IsGpuChannelLost() override; | 129 bool IsGpuChannelLost() override; |
| 131 CommandBufferNamespace GetNamespaceID() const override; | 130 CommandBufferNamespace GetNamespaceID() const override; |
| 132 uint64_t GetCommandBufferID() const override; | 131 uint64_t GetCommandBufferID() const override; |
| 133 uint64_t GenerateFenceSyncRelease() override; | 132 uint64_t GenerateFenceSyncRelease() override; |
| 134 bool IsFenceSyncRelease(uint64_t release) override; | 133 bool IsFenceSyncRelease(uint64_t release) override; |
| 135 bool IsFenceSyncFlushed(uint64_t release) override; | 134 bool IsFenceSyncFlushed(uint64_t release) override; |
| 136 bool IsFenceSyncFlushReceived(uint64_t release) override; | 135 bool IsFenceSyncFlushReceived(uint64_t release) override; |
| 137 void SignalSyncToken(const SyncToken& sync_token, | 136 void SignalSyncToken(const SyncToken& sync_token, |
| 138 const base::Closure& callback) override; | 137 const base::Closure& callback) override; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 171 scoped_refptr<gles2::MailboxManager> mailbox_manager_; | 170 scoped_refptr<gles2::MailboxManager> mailbox_manager_; |
| 172 scoped_refptr<gles2::SubscriptionRefSet> subscription_ref_set_; | 171 scoped_refptr<gles2::SubscriptionRefSet> subscription_ref_set_; |
| 173 scoped_refptr<gpu::ValueStateMap> pending_valuebuffer_state_; | 172 scoped_refptr<gpu::ValueStateMap> pending_valuebuffer_state_; |
| 174 scoped_ptr<gpu::gles2::ProgramCache> program_cache_; | 173 scoped_ptr<gpu::gles2::ProgramCache> program_cache_; |
| 175 }; | 174 }; |
| 176 | 175 |
| 177 #if defined(OS_ANDROID) | 176 #if defined(OS_ANDROID) |
| 178 scoped_refptr<gfx::SurfaceTexture> GetSurfaceTexture( | 177 scoped_refptr<gfx::SurfaceTexture> GetSurfaceTexture( |
| 179 uint32 stream_id); | 178 uint32 stream_id); |
| 180 #endif | 179 #endif |
| 180 uint32 CreateStreamTexture(uint32 texture_id); | |
|
no sievers
2015/11/06 22:08:41
here too: can this be ifdef android?
sivag
2015/11/09 14:06:32
Done.
| |
| 181 | 181 |
| 182 private: | 182 private: |
| 183 struct InitializeOnGpuThreadParams { | 183 struct InitializeOnGpuThreadParams { |
| 184 bool is_offscreen; | 184 bool is_offscreen; |
| 185 gfx::AcceleratedWidget window; | 185 gfx::AcceleratedWidget window; |
| 186 const gfx::Size& size; | 186 const gfx::Size& size; |
| 187 const std::vector<int32>& attribs; | 187 const std::vector<int32>& attribs; |
| 188 gfx::GpuPreference gpu_preference; | 188 gfx::GpuPreference gpu_preference; |
| 189 gpu::Capabilities* capabilities; // Ouptut. | 189 gpu::Capabilities* capabilities; // Ouptut. |
| 190 InProcessCommandBuffer* context_group; | 190 InProcessCommandBuffer* context_group; |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 315 SyncPointManager* sync_point_manager_; // Non-owning. | 315 SyncPointManager* sync_point_manager_; // Non-owning. |
| 316 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_; | 316 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_; |
| 317 scoped_refptr<gpu::gles2::FramebufferCompletenessCache> | 317 scoped_refptr<gpu::gles2::FramebufferCompletenessCache> |
| 318 framebuffer_completeness_cache_; | 318 framebuffer_completeness_cache_; |
| 319 DISALLOW_COPY_AND_ASSIGN(GpuInProcessThread); | 319 DISALLOW_COPY_AND_ASSIGN(GpuInProcessThread); |
| 320 }; | 320 }; |
| 321 | 321 |
| 322 } // namespace gpu | 322 } // namespace gpu |
| 323 | 323 |
| 324 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ | 324 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ |
| OLD | NEW |