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

Side by Side Diff: ui/gl/async_pixel_transfer_delegate_stub.cc

Issue 12210129: gpu: Add the ability to wait on upload completion. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix logging. Created 7 years, 9 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
« no previous file with comments | « ui/gl/async_pixel_transfer_delegate_stub.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ui/gl/async_pixel_transfer_delegate_stub.h" 5 #include "ui/gl/async_pixel_transfer_delegate_stub.h"
6 6
7 #include "base/shared_memory.h" 7 #include "base/shared_memory.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "ui/gl/gl_bindings.h" 9 #include "ui/gl/gl_bindings.h"
10 10
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 tex_params.yoffset, 132 tex_params.yoffset,
133 tex_params.width, 133 tex_params.width,
134 tex_params.height, 134 tex_params.height,
135 tex_params.format, 135 tex_params.format,
136 tex_params.type, 136 tex_params.type,
137 data); 137 data);
138 texture_upload_count_++; 138 texture_upload_count_++;
139 total_texture_upload_time_ += base::TimeTicks::HighResNow() - begin_time; 139 total_texture_upload_time_ += base::TimeTicks::HighResNow() - begin_time;
140 } 140 }
141 141
142 void AsyncPixelTransferDelegateStub::WaitForTransferCompletion(
143 AsyncPixelTransferState* state) {
144 // Already done.
145 }
146
142 uint32 AsyncPixelTransferDelegateStub::GetTextureUploadCount() { 147 uint32 AsyncPixelTransferDelegateStub::GetTextureUploadCount() {
143 return texture_upload_count_; 148 return texture_upload_count_;
144 } 149 }
145 150
146 base::TimeDelta AsyncPixelTransferDelegateStub::GetTotalTextureUploadTime() { 151 base::TimeDelta AsyncPixelTransferDelegateStub::GetTotalTextureUploadTime() {
147 return total_texture_upload_time_; 152 return total_texture_upload_time_;
148 } 153 }
149 154
150 } // namespace gfx 155 } // namespace gfx
151 156
OLDNEW
« no previous file with comments | « ui/gl/async_pixel_transfer_delegate_stub.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698