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

Side by Side Diff: gpu/command_buffer/service/in_process_command_buffer.h

Issue 1420503011: GLES2CmdDecoder should resize GLSurface using GLSurface::Resize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 void CreateImageOnGpuThread(int32 id, 229 void CreateImageOnGpuThread(int32 id,
230 const gfx::GpuMemoryBufferHandle& handle, 230 const gfx::GpuMemoryBufferHandle& handle,
231 const gfx::Size& size, 231 const gfx::Size& size,
232 gfx::BufferFormat format, 232 gfx::BufferFormat format,
233 uint32 internalformat); 233 uint32 internalformat);
234 void DestroyImageOnGpuThread(int32 id); 234 void DestroyImageOnGpuThread(int32 id);
235 void SetGetBufferOnGpuThread(int32 shm_id, base::WaitableEvent* completion); 235 void SetGetBufferOnGpuThread(int32 shm_id, base::WaitableEvent* completion);
236 236
237 // Callbacks: 237 // Callbacks:
238 void OnContextLost(); 238 void OnContextLost();
239 void OnResizeView(gfx::Size size, float scale_factor);
240 bool GetBufferChanged(int32 transfer_buffer_id); 239 bool GetBufferChanged(int32 transfer_buffer_id);
241 void PumpCommands(); 240 void PumpCommands();
242 void PerformDelayedWork(); 241 void PerformDelayedWork();
243 242
244 const uint64_t command_buffer_id_; 243 const uint64_t command_buffer_id_;
245 244
246 // Members accessed on the gpu thread (possibly with the exception of 245 // Members accessed on the gpu thread (possibly with the exception of
247 // creation): 246 // creation):
248 bool context_lost_; 247 bool context_lost_;
249 scoped_refptr<TransferBufferManagerInterface> transfer_buffer_manager_; 248 scoped_refptr<TransferBufferManagerInterface> transfer_buffer_manager_;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 SyncPointManager* sync_point_manager_; // Non-owning. 315 SyncPointManager* sync_point_manager_; // Non-owning.
317 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_; 316 scoped_refptr<gpu::gles2::ShaderTranslatorCache> shader_translator_cache_;
318 scoped_refptr<gpu::gles2::FramebufferCompletenessCache> 317 scoped_refptr<gpu::gles2::FramebufferCompletenessCache>
319 framebuffer_completeness_cache_; 318 framebuffer_completeness_cache_;
320 DISALLOW_COPY_AND_ASSIGN(GpuInProcessThread); 319 DISALLOW_COPY_AND_ASSIGN(GpuInProcessThread);
321 }; 320 };
322 321
323 } // namespace gpu 322 } // namespace gpu
324 323
325 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ 324 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/in_process_command_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698