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

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

Issue 8566059: Add CommandBuffer::SetGetBuffer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: etc Created 9 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 | 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
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 gfx::GpuPreference gpu_preference() { return gpu_preference_; } 83 gfx::GpuPreference gpu_preference() { return gpu_preference_; }
84 84
85 private: 85 private:
86 void Destroy(); 86 void Destroy();
87 87
88 // Cleans up and sends reply if OnInitialize failed. 88 // Cleans up and sends reply if OnInitialize failed.
89 void OnInitializeFailed(IPC::Message* reply_message); 89 void OnInitializeFailed(IPC::Message* reply_message);
90 90
91 // Message handlers: 91 // Message handlers:
92 void OnInitialize(base::SharedMemoryHandle ring_buffer, 92 void OnInitialize(IPC::Message* reply_message);
93 int32 size, 93 void OnSetGetBuffer(int32 shm_id, IPC::Message* reply_message);
94 IPC::Message* reply_message);
95 void OnSetParent(int32 parent_route_id, 94 void OnSetParent(int32 parent_route_id,
96 uint32 parent_texture_id, 95 uint32 parent_texture_id,
97 IPC::Message* reply_message); 96 IPC::Message* reply_message);
98 void OnGetState(IPC::Message* reply_message); 97 void OnGetState(IPC::Message* reply_message);
99 void OnGetStateFast(IPC::Message* reply_message); 98 void OnGetStateFast(IPC::Message* reply_message);
100 void OnAsyncFlush(int32 put_offset, uint32 flush_count); 99 void OnAsyncFlush(int32 put_offset, uint32 flush_count);
101 void OnEcho(const IPC::Message& message); 100 void OnEcho(const IPC::Message& message);
102 void OnRescheduled(); 101 void OnRescheduled();
103 void OnCreateTransferBuffer(int32 size, 102 void OnCreateTransferBuffer(int32 size,
104 int32 id_request, 103 int32 id_request,
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // Zero or more video decoders owned by this stub, keyed by their 171 // Zero or more video decoders owned by this stub, keyed by their
173 // decoder_route_id. 172 // decoder_route_id.
174 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; 173 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_;
175 174
176 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 175 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
177 }; 176 };
178 177
179 #endif // defined(ENABLE_GPU) 178 #endif // defined(ENABLE_GPU)
180 179
181 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 180 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698