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

Unified Diff: gpu/command_buffer/service/async_pixel_transfer_delegate.cc

Issue 1186393004: gpu: Remove async texture uploads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/async_pixel_transfer_delegate.cc
diff --git a/gpu/command_buffer/service/async_pixel_transfer_delegate.cc b/gpu/command_buffer/service/async_pixel_transfer_delegate.cc
deleted file mode 100644
index 201026b21769aa87f548fceeba749ec4ade44812..0000000000000000000000000000000000000000
--- a/gpu/command_buffer/service/async_pixel_transfer_delegate.cc
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "gpu/command_buffer/service/async_pixel_transfer_delegate.h"
-
-namespace gpu {
-
-AsyncMemoryParams::AsyncMemoryParams(scoped_refptr<Buffer> buffer,
- uint32 data_offset,
- uint32 data_size)
- : buffer_(buffer), data_offset_(data_offset), data_size_(data_size) {
- DCHECK(buffer_.get());
- DCHECK(buffer_->memory());
-}
-
-AsyncMemoryParams::~AsyncMemoryParams() {
-}
-
-AsyncPixelTransferUploadStats::AsyncPixelTransferUploadStats()
- : texture_upload_count_(0) {}
-
-AsyncPixelTransferUploadStats::~AsyncPixelTransferUploadStats() {}
-
-void AsyncPixelTransferUploadStats::AddUpload(base::TimeDelta transfer_time) {
- base::AutoLock scoped_lock(lock_);
- texture_upload_count_++;
- total_texture_upload_time_ += transfer_time;
-}
-
-int AsyncPixelTransferUploadStats::GetStats(
- base::TimeDelta* total_texture_upload_time) {
- base::AutoLock scoped_lock(lock_);
- if (total_texture_upload_time)
- *total_texture_upload_time = total_texture_upload_time_;
- return texture_upload_count_;
-}
-
-AsyncPixelTransferDelegate::AsyncPixelTransferDelegate() {}
-
-AsyncPixelTransferDelegate::~AsyncPixelTransferDelegate() {}
-
-} // namespace gpu

Powered by Google App Engine
This is Rietveld 408576698