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

Side by Side Diff: gpu/command_buffer/service/async_pixel_transfer_manager_sync.cc

Issue 116863003: gpu: Reuse transfer buffers more aggresively (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Unset texture and texture_ref after deleting Created 6 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "gpu/command_buffer/service/async_pixel_transfer_manager_sync.h" 5 #include "gpu/command_buffer/service/async_pixel_transfer_manager_sync.h"
6 6
7 #include "gpu/command_buffer/service/async_pixel_transfer_delegate.h" 7 #include "gpu/command_buffer/service/async_pixel_transfer_delegate.h"
8 8
9 namespace gpu { 9 namespace gpu {
10 10
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 return shared_state_.total_texture_upload_time; 121 return shared_state_.total_texture_upload_time;
122 } 122 }
123 123
124 void AsyncPixelTransferManagerSync::ProcessMorePendingTransfers() { 124 void AsyncPixelTransferManagerSync::ProcessMorePendingTransfers() {
125 } 125 }
126 126
127 bool AsyncPixelTransferManagerSync::NeedsProcessMorePendingTransfers() { 127 bool AsyncPixelTransferManagerSync::NeedsProcessMorePendingTransfers() {
128 return false; 128 return false;
129 } 129 }
130 130
131 void AsyncPixelTransferManagerSync::WaitAllAsyncTexImage2D() {
132 }
133
131 AsyncPixelTransferDelegate* 134 AsyncPixelTransferDelegate*
132 AsyncPixelTransferManagerSync::CreatePixelTransferDelegateImpl( 135 AsyncPixelTransferManagerSync::CreatePixelTransferDelegateImpl(
133 gles2::TextureRef* ref, 136 gles2::TextureRef* ref,
134 const AsyncTexImage2DParams& define_params) { 137 const AsyncTexImage2DParams& define_params) {
135 return new AsyncPixelTransferDelegateSync(&shared_state_); 138 return new AsyncPixelTransferDelegateSync(&shared_state_);
136 } 139 }
137 140
138 } // namespace gpu 141 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/async_pixel_transfer_manager_sync.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698