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

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

Issue 8758026: Revert "Revert 113250 - Add CommandBuffer::SetGetBuffer" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years 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
« no previous file with comments | « no previous file | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 gfx::GpuPreference gpu_preference() { return gpu_preference_; } 84 gfx::GpuPreference gpu_preference() { return gpu_preference_; }
85 85
86 private: 86 private:
87 void Destroy(); 87 void Destroy();
88 88
89 // Cleans up and sends reply if OnInitialize failed. 89 // Cleans up and sends reply if OnInitialize failed.
90 void OnInitializeFailed(IPC::Message* reply_message); 90 void OnInitializeFailed(IPC::Message* reply_message);
91 91
92 // Message handlers: 92 // Message handlers:
93 void OnInitialize(base::SharedMemoryHandle ring_buffer, 93 void OnInitialize(IPC::Message* reply_message);
94 int32 size, 94 void OnSetGetBuffer(int32 shm_id, IPC::Message* reply_message);
95 IPC::Message* reply_message);
96 void OnSetParent(int32 parent_route_id, 95 void OnSetParent(int32 parent_route_id,
97 uint32 parent_texture_id, 96 uint32 parent_texture_id,
98 IPC::Message* reply_message); 97 IPC::Message* reply_message);
99 void OnGetState(IPC::Message* reply_message); 98 void OnGetState(IPC::Message* reply_message);
100 void OnGetStateFast(IPC::Message* reply_message); 99 void OnGetStateFast(IPC::Message* reply_message);
101 void OnAsyncFlush(int32 put_offset, uint32 flush_count); 100 void OnAsyncFlush(int32 put_offset, uint32 flush_count);
102 void OnEcho(const IPC::Message& message); 101 void OnEcho(const IPC::Message& message);
103 void OnRescheduled(); 102 void OnRescheduled();
104 void OnCreateTransferBuffer(int32 size, 103 void OnCreateTransferBuffer(int32 size,
105 int32 id_request, 104 int32 id_request,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // Zero or more video decoders owned by this stub, keyed by their 161 // Zero or more video decoders owned by this stub, keyed by their
163 // decoder_route_id. 162 // decoder_route_id.
164 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; 163 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_;
165 164
166 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 165 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
167 }; 166 };
168 167
169 #endif // defined(ENABLE_GPU) 168 #endif // defined(ENABLE_GPU)
170 169
171 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 170 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698