OLD | NEW |
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 Loading... |
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 |
OLD | NEW |