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

Side by Side Diff: content/common/gpu/gpu_command_buffer_stub.h

Issue 15798014: Replace context parenting by sharing through mailboxes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 14 matching lines...) Expand all
25 #include "ipc/ipc_sender.h" 25 #include "ipc/ipc_sender.h"
26 #include "media/base/video_decoder_config.h" 26 #include "media/base/video_decoder_config.h"
27 #include "ui/base/latency_info.h" 27 #include "ui/base/latency_info.h"
28 #include "ui/gfx/native_widget_types.h" 28 #include "ui/gfx/native_widget_types.h"
29 #include "ui/gfx/size.h" 29 #include "ui/gfx/size.h"
30 #include "ui/gl/gl_surface.h" 30 #include "ui/gl/gl_surface.h"
31 #include "ui/gl/gpu_preference.h" 31 #include "ui/gl/gpu_preference.h"
32 #include "ui/surface/transport_dib.h" 32 #include "ui/surface/transport_dib.h"
33 33
34 namespace gpu { 34 namespace gpu {
35 struct Mailbox;
35 namespace gles2 { 36 namespace gles2 {
36 class ImageManager; 37 class ImageManager;
37 class MailboxManager; 38 class MailboxManager;
38 } 39 }
39 } 40 }
40 41
41 namespace content { 42 namespace content {
42 43
43 class GpuChannel; 44 class GpuChannel;
44 class GpuVideoDecodeAccelerator; 45 class GpuVideoDecodeAccelerator;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 bool MakeCurrent(); 143 bool MakeCurrent();
143 void Destroy(); 144 void Destroy();
144 145
145 // Cleans up and sends reply if OnInitialize failed. 146 // Cleans up and sends reply if OnInitialize failed.
146 void OnInitializeFailed(IPC::Message* reply_message); 147 void OnInitializeFailed(IPC::Message* reply_message);
147 148
148 // Message handlers: 149 // Message handlers:
149 void OnInitialize(base::SharedMemoryHandle shared_state_shm, 150 void OnInitialize(base::SharedMemoryHandle shared_state_shm,
150 IPC::Message* reply_message); 151 IPC::Message* reply_message);
151 void OnSetGetBuffer(int32 shm_id, IPC::Message* reply_message); 152 void OnSetGetBuffer(int32 shm_id, IPC::Message* reply_message);
152 void OnSetParent(int32 parent_route_id, 153 void OnProduceFrontBuffer(const gpu::Mailbox& mailbox);
153 uint32 parent_texture_id,
154 IPC::Message* reply_message);
155 void OnGetState(IPC::Message* reply_message); 154 void OnGetState(IPC::Message* reply_message);
156 void OnGetStateFast(IPC::Message* reply_message); 155 void OnGetStateFast(IPC::Message* reply_message);
157 void OnAsyncFlush(int32 put_offset, uint32 flush_count); 156 void OnAsyncFlush(int32 put_offset, uint32 flush_count);
158 void OnEcho(const IPC::Message& message); 157 void OnEcho(const IPC::Message& message);
159 void OnRescheduled(); 158 void OnRescheduled();
160 void OnRegisterTransferBuffer(int32 id, 159 void OnRegisterTransferBuffer(int32 id,
161 base::SharedMemoryHandle transfer_buffer, 160 base::SharedMemoryHandle transfer_buffer,
162 uint32 size); 161 uint32 size);
163 void OnDestroyTransferBuffer(int32 id); 162 void OnDestroyTransferBuffer(int32 id);
164 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message); 163 void OnGetTransferBuffer(int32 id, IPC::Message* reply_message);
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 size_t active_url_hash_; 248 size_t active_url_hash_;
250 249
251 size_t total_gpu_memory_; 250 size_t total_gpu_memory_;
252 251
253 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 252 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
254 }; 253 };
255 254
256 } // namespace content 255 } // namespace content
257 256
258 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 257 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW
« no previous file with comments | « content/common/gpu/client/command_buffer_proxy_impl.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698