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

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

Issue 9380037: Use shared memory to update the renderer's view of the command buffer state. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix hang when last_state_.error accidentally overwritten Created 8 years, 10 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 #pragma once 7 #pragma once
8 8
9 #if defined(ENABLE_GPU) 9 #if defined(ENABLE_GPU)
10 10
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 145
146 private: 146 private:
147 void Destroy(); 147 void Destroy();
148 148
149 // Cleans up and sends reply if OnInitialize failed. 149 // Cleans up and sends reply if OnInitialize failed.
150 void OnInitializeFailed(IPC::Message* reply_message); 150 void OnInitializeFailed(IPC::Message* reply_message);
151 151
152 // Message handlers: 152 // Message handlers:
153 void OnInitialize(IPC::Message* reply_message); 153 void OnInitialize(IPC::Message* reply_message);
154 void OnSetGetBuffer(int32 shm_id, IPC::Message* reply_message); 154 void OnSetGetBuffer(int32 shm_id, IPC::Message* reply_message);
155 void OnSetSharedStateBuffer(int32 shm_id, IPC::Message* reply_message);
155 void OnSetParent(int32 parent_route_id, 156 void OnSetParent(int32 parent_route_id,
156 uint32 parent_texture_id, 157 uint32 parent_texture_id,
157 IPC::Message* reply_message); 158 IPC::Message* reply_message);
158 void OnGetState(IPC::Message* reply_message); 159 void OnGetState(IPC::Message* reply_message);
159 void OnGetStateFast(IPC::Message* reply_message); 160 void OnGetStateFast(IPC::Message* reply_message);
160 void OnAsyncFlush(int32 put_offset, uint32 flush_count); 161 void OnAsyncFlush(int32 put_offset, uint32 flush_count);
161 void OnEcho(const IPC::Message& message); 162 void OnEcho(const IPC::Message& message);
162 void OnRescheduled(); 163 void OnRescheduled();
163 void OnCreateTransferBuffer(int32 size, 164 void OnCreateTransferBuffer(int32 size,
164 int32 id_request, 165 int32 id_request,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; 221 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_;
221 222
222 ObserverList<DestructionObserver> destruction_observers_; 223 ObserverList<DestructionObserver> destruction_observers_;
223 224
224 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 225 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
225 }; 226 };
226 227
227 #endif // defined(ENABLE_GPU) 228 #endif // defined(ENABLE_GPU)
228 229
229 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 230 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW
« no previous file with comments | « content/common/gpu/client/command_buffer_proxy.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