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

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

Issue 500243002: Remove implicit conversions from scoped_refptr to T* in gpu/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert silliness Created 6 years, 4 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 (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
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
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/transfer_buffer.cc ('k') | gpu/command_buffer/service/command_buffer_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698