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

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

Issue 116863003: gpu: Reuse transfer buffers more aggresively (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Async upload token part of existing Async command; use separate shared memory to sync async upload … Created 6 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
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_stub.h" 5 #include "gpu/command_buffer/service/async_pixel_transfer_manager_stub.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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 void AsyncPixelTransferDelegateStub::WaitForTransferCompletion() {} 51 void AsyncPixelTransferDelegateStub::WaitForTransferCompletion() {}
52 52
53 AsyncPixelTransferManagerStub::AsyncPixelTransferManagerStub() {} 53 AsyncPixelTransferManagerStub::AsyncPixelTransferManagerStub() {}
54 54
55 AsyncPixelTransferManagerStub::~AsyncPixelTransferManagerStub() {} 55 AsyncPixelTransferManagerStub::~AsyncPixelTransferManagerStub() {}
56 56
57 void AsyncPixelTransferManagerStub::BindCompletedAsyncTransfers() { 57 void AsyncPixelTransferManagerStub::BindCompletedAsyncTransfers() {
58 } 58 }
59 59
60 void AsyncPixelTransferManagerStub::AsyncRun(const base::Closure& callback) {
61 callback.Run();
62 }
63
60 void AsyncPixelTransferManagerStub::AsyncNotifyCompletion( 64 void AsyncPixelTransferManagerStub::AsyncNotifyCompletion(
61 const AsyncMemoryParams& mem_params, 65 const AsyncMemoryParams& mem_params,
62 AsyncPixelTransferCompletionObserver* observer) { 66 AsyncPixelTransferCompletionObserver* observer) {
63 observer->DidComplete(mem_params); 67 observer->DidComplete(mem_params);
64 } 68 }
65 69
66 uint32 AsyncPixelTransferManagerStub::GetTextureUploadCount() { 70 uint32 AsyncPixelTransferManagerStub::GetTextureUploadCount() {
67 return 0; 71 return 0;
68 } 72 }
69 73
70 base::TimeDelta AsyncPixelTransferManagerStub::GetTotalTextureUploadTime() { 74 base::TimeDelta AsyncPixelTransferManagerStub::GetTotalTextureUploadTime() {
71 return base::TimeDelta(); 75 return base::TimeDelta();
72 } 76 }
73 77
74 void AsyncPixelTransferManagerStub::ProcessMorePendingTransfers() { 78 void AsyncPixelTransferManagerStub::ProcessMorePendingTransfers() {
75 } 79 }
76 80
77 bool AsyncPixelTransferManagerStub::NeedsProcessMorePendingTransfers() { 81 bool AsyncPixelTransferManagerStub::NeedsProcessMorePendingTransfers() {
78 return false; 82 return false;
79 } 83 }
80 84
81 AsyncPixelTransferDelegate* 85 AsyncPixelTransferDelegate*
82 AsyncPixelTransferManagerStub::CreatePixelTransferDelegateImpl( 86 AsyncPixelTransferManagerStub::CreatePixelTransferDelegateImpl(
83 gles2::TextureRef* ref, 87 gles2::TextureRef* ref,
84 const AsyncTexImage2DParams& define_params) { 88 const AsyncTexImage2DParams& define_params) {
85 return new AsyncPixelTransferDelegateStub(); 89 return new AsyncPixelTransferDelegateStub();
86 } 90 }
87 91
88 } // namespace gpu 92 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698