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

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

Issue 7529015: Allow the renderer process to map textures from one context into another. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #if defined(ENABLE_GPU) 9 #if defined(ENABLE_GPU)
10 10
11 #include <queue> 11 #include <queue>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "base/process.h" 16 #include "base/process.h"
17 #include "base/task.h" 17 #include "base/task.h"
18 #include "content/common/gpu/media/gpu_video_decode_accelerator.h" 18 #include "content/common/gpu/media/gpu_video_decode_accelerator.h"
19 #include "gpu/command_buffer/common/constants.h"
19 #include "gpu/command_buffer/service/command_buffer_service.h" 20 #include "gpu/command_buffer/service/command_buffer_service.h"
20 #include "gpu/command_buffer/service/gpu_scheduler.h" 21 #include "gpu/command_buffer/service/gpu_scheduler.h"
21 #include "ipc/ipc_channel.h" 22 #include "ipc/ipc_channel.h"
22 #include "ipc/ipc_message.h" 23 #include "ipc/ipc_message.h"
23 #include "ui/gfx/native_widget_types.h" 24 #include "ui/gfx/native_widget_types.h"
24 #include "ui/gfx/size.h" 25 #include "ui/gfx/size.h"
25 26
26 class GpuChannel; 27 class GpuChannel;
27 class GpuWatchdog; 28 class GpuWatchdog;
28 29
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 #endif // defined(OS_MACOSX) 85 #endif // defined(OS_MACOSX)
85 86
86 private: 87 private:
87 // Cleans up and sends reply if OnInitialize failed. 88 // Cleans up and sends reply if OnInitialize failed.
88 void OnInitializeFailed(IPC::Message* reply_message); 89 void OnInitializeFailed(IPC::Message* reply_message);
89 90
90 // Message handlers: 91 // Message handlers:
91 void OnInitialize(base::SharedMemoryHandle ring_buffer, 92 void OnInitialize(base::SharedMemoryHandle ring_buffer,
92 int32 size, 93 int32 size,
93 IPC::Message* reply_message); 94 IPC::Message* reply_message);
95 void OnMapExternalResource(gpu::resource_type::ResourceType resource_type,
96 uint32 resource_source_id,
97 int32 source_route_id,
98 uint32 resource_dest_id);
94 void OnSetParent(int32 parent_route_id, 99 void OnSetParent(int32 parent_route_id,
95 uint32 parent_texture_id, 100 uint32 parent_texture_id,
96 IPC::Message* reply_message); 101 IPC::Message* reply_message);
97 void OnGetState(IPC::Message* reply_message); 102 void OnGetState(IPC::Message* reply_message);
98 void OnFlush(int32 put_offset, 103 void OnFlush(int32 put_offset,
99 int32 last_known_get, 104 int32 last_known_get,
100 uint32 flush_count, 105 uint32 flush_count,
101 IPC::Message* reply_message); 106 IPC::Message* reply_message);
102 void OnAsyncFlush(int32 put_offset, uint32 flush_count); 107 void OnAsyncFlush(int32 put_offset, uint32 flush_count);
103 void OnRescheduled(); 108 void OnRescheduled();
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 164
160 // The video decoder associated with this stub, if any. 165 // The video decoder associated with this stub, if any.
161 scoped_ptr<GpuVideoDecodeAccelerator> video_decoder_; 166 scoped_ptr<GpuVideoDecodeAccelerator> video_decoder_;
162 167
163 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 168 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
164 }; 169 };
165 170
166 #endif // defined(ENABLE_GPU) 171 #endif // defined(ENABLE_GPU)
167 172
168 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 173 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | content/common/gpu/gpu_command_buffer_stub.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698