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

Side by Side Diff: ppapi/proxy/ppapi_command_buffer_proxy.cc

Issue 116863003: gpu: Reuse transfer buffers more aggresively (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: [WIP] Review comments follow-up Created 6 years, 11 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
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 #include "ppapi/proxy/ppapi_command_buffer_proxy.h" 5 #include "ppapi/proxy/ppapi_command_buffer_proxy.h"
6 6
7 #include "ppapi/proxy/ppapi_messages.h" 7 #include "ppapi/proxy/ppapi_messages.h"
8 #include "ppapi/proxy/proxy_channel.h" 8 #include "ppapi/proxy/proxy_channel.h"
9 #include "ppapi/shared_impl/api_id.h" 9 #include "ppapi/shared_impl/api_id.h"
10 #include "ppapi/shared_impl/host_resource.h" 10 #include "ppapi/shared_impl/host_resource.h"
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 buffer.shared_memory = shared_memory.release(); 182 buffer.shared_memory = shared_memory.release();
183 transfer_buffers_[id] = buffer; 183 transfer_buffers_[id] = buffer;
184 184
185 return buffer; 185 return buffer;
186 } 186 }
187 187
188 void PpapiCommandBufferProxy::SetToken(int32 token) { 188 void PpapiCommandBufferProxy::SetToken(int32 token) {
189 NOTREACHED(); 189 NOTREACHED();
190 } 190 }
191 191
192 void PpapiCommandBufferProxy::SetSerial(uint32 serial) {
193 NOTREACHED();
194 }
195
192 void PpapiCommandBufferProxy::SetParseError(gpu::error::Error error) { 196 void PpapiCommandBufferProxy::SetParseError(gpu::error::Error error) {
193 NOTREACHED(); 197 NOTREACHED();
194 } 198 }
195 199
196 void PpapiCommandBufferProxy::SetContextLostReason( 200 void PpapiCommandBufferProxy::SetContextLostReason(
197 gpu::error::ContextLostReason reason) { 201 gpu::error::ContextLostReason reason) {
198 NOTREACHED(); 202 NOTREACHED();
199 } 203 }
200 204
201 uint32 PpapiCommandBufferProxy::InsertSyncPoint() { 205 uint32 PpapiCommandBufferProxy::InsertSyncPoint() {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 last_state_ = state; 278 last_state_ = state;
275 } 279 }
276 } else { 280 } else {
277 last_state_.error = gpu::error::kLostContext; 281 last_state_.error = gpu::error::kLostContext;
278 ++last_state_.generation; 282 ++last_state_.generation;
279 } 283 }
280 } 284 }
281 285
282 } // namespace proxy 286 } // namespace proxy
283 } // namespace ppapi 287 } // namespace ppapi
OLDNEW
« gpu/command_buffer/client/gles2_implementation.cc ('K') | « ppapi/proxy/ppapi_command_buffer_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698