| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_delegate.h" | 5 #include "gpu/command_buffer/service/async_pixel_transfer_delegate.h" |
| 6 | 6 |
| 7 namespace gpu { | 7 namespace gpu { |
| 8 | 8 |
| 9 AsyncMemoryParams::AsyncMemoryParams(scoped_refptr<Buffer> buffer, | 9 AsyncMemoryParams::AsyncMemoryParams(scoped_refptr<Buffer> buffer, |
| 10 uint32 data_offset, | 10 uint32 data_offset, |
| 11 uint32 data_size) | 11 uint32 data_size) |
| 12 : buffer_(buffer), data_offset_(data_offset), data_size_(data_size) { | 12 : buffer_(buffer), data_offset_(data_offset), data_size_(data_size) { |
| 13 DCHECK(buffer_); | 13 DCHECK(buffer_.get()); |
| 14 DCHECK(buffer_->memory()); | 14 DCHECK(buffer_->memory()); |
| 15 } | 15 } |
| 16 | 16 |
| 17 AsyncMemoryParams::~AsyncMemoryParams() { | 17 AsyncMemoryParams::~AsyncMemoryParams() { |
| 18 } | 18 } |
| 19 | 19 |
| 20 AsyncPixelTransferUploadStats::AsyncPixelTransferUploadStats() | 20 AsyncPixelTransferUploadStats::AsyncPixelTransferUploadStats() |
| 21 : texture_upload_count_(0) {} | 21 : texture_upload_count_(0) {} |
| 22 | 22 |
| 23 AsyncPixelTransferUploadStats::~AsyncPixelTransferUploadStats() {} | 23 AsyncPixelTransferUploadStats::~AsyncPixelTransferUploadStats() {} |
| (...skipping 10 matching lines...) Expand all Loading... |
| 34 if (total_texture_upload_time) | 34 if (total_texture_upload_time) |
| 35 *total_texture_upload_time = total_texture_upload_time_; | 35 *total_texture_upload_time = total_texture_upload_time_; |
| 36 return texture_upload_count_; | 36 return texture_upload_count_; |
| 37 } | 37 } |
| 38 | 38 |
| 39 AsyncPixelTransferDelegate::AsyncPixelTransferDelegate() {} | 39 AsyncPixelTransferDelegate::AsyncPixelTransferDelegate() {} |
| 40 | 40 |
| 41 AsyncPixelTransferDelegate::~AsyncPixelTransferDelegate() {} | 41 AsyncPixelTransferDelegate::~AsyncPixelTransferDelegate() {} |
| 42 | 42 |
| 43 } // namespace gpu | 43 } // namespace gpu |
| OLD | NEW |