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

Side by Side Diff: content/common/gpu/client/command_buffer_proxy_impl.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 "content/common/gpu/client/command_buffer_proxy_impl.h" 5 #include "content/common/gpu/client/command_buffer_proxy_impl.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 transfer_buffers_[id] = buffer; 355 transfer_buffers_[id] = buffer;
356 356
357 return buffer; 357 return buffer;
358 } 358 }
359 359
360 void CommandBufferProxyImpl::SetToken(int32 token) { 360 void CommandBufferProxyImpl::SetToken(int32 token) {
361 // Not implemented in proxy. 361 // Not implemented in proxy.
362 NOTREACHED(); 362 NOTREACHED();
363 } 363 }
364 364
365 void CommandBufferProxyImpl::SetSerial(uint32 serial) {
366 // Not implemented in proxy.
367 NOTREACHED();
368 }
369
365 void CommandBufferProxyImpl::SetParseError( 370 void CommandBufferProxyImpl::SetParseError(
366 gpu::error::Error error) { 371 gpu::error::Error error) {
367 // Not implemented in proxy. 372 // Not implemented in proxy.
368 NOTREACHED(); 373 NOTREACHED();
369 } 374 }
370 375
371 void CommandBufferProxyImpl::SetContextLostReason( 376 void CommandBufferProxyImpl::SetContextLostReason(
372 gpu::error::ContextLostReason reason) { 377 gpu::error::ContextLostReason reason) {
373 // Not implemented in proxy. 378 // Not implemented in proxy.
374 NOTREACHED(); 379 NOTREACHED();
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 const GpuConsoleMessageCallback& callback) { 600 const GpuConsoleMessageCallback& callback) {
596 console_message_callback_ = callback; 601 console_message_callback_ = callback;
597 } 602 }
598 603
599 void CommandBufferProxyImpl::TryUpdateState() { 604 void CommandBufferProxyImpl::TryUpdateState() {
600 if (last_state_.error == gpu::error::kNoError) 605 if (last_state_.error == gpu::error::kNoError)
601 shared_state()->Read(&last_state_); 606 shared_state()->Read(&last_state_);
602 } 607 }
603 608
604 } // namespace content 609 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698