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

Unified Diff: cc/tiles/gpu_image_decode_controller.cc

Issue 1866043006: cc: Remove ScheduleOnOriginThread() and CompleteOnOriginThread(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 7 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
« no previous file with comments | « cc/tiles/gpu_image_decode_controller.h ('k') | cc/tiles/gpu_image_decode_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/gpu_image_decode_controller.cc
diff --git a/cc/tiles/gpu_image_decode_controller.cc b/cc/tiles/gpu_image_decode_controller.cc
index e64c9230b2af896ae994b65c200a3ead761191b1..e0c81fcd82941b98defb68cabdf218753f6f52a4 100644
--- a/cc/tiles/gpu_image_decode_controller.cc
+++ b/cc/tiles/gpu_image_decode_controller.cc
@@ -76,9 +76,8 @@ class ImageDecodeTaskImpl : public TileTask {
}
// Overridden from TileTask:
- void ScheduleOnOriginThread(RasterBufferProvider* provider) override {}
- void CompleteOnOriginThread(RasterBufferProvider* provider) override {
- controller_->DecodeTaskCompleted(image_);
+ void OnTaskCompleted() override {
+ controller_->OnImageDecodeTaskCompleted(image_);
}
protected:
@@ -119,9 +118,9 @@ class ImageUploadTaskImpl : public TileTask {
controller_->UploadImage(image_);
}
- void ScheduleOnOriginThread(RasterBufferProvider* provider) override {}
- void CompleteOnOriginThread(RasterBufferProvider* provider) override {
- controller_->UploadTaskCompleted(image_);
+ // Overridden from TileTask:
+ void OnTaskCompleted() override {
+ controller_->OnImageUploadTaskCompleted(image_);
}
protected:
@@ -443,7 +442,7 @@ void GpuImageDecodeController::UploadImage(const DrawImage& draw_image) {
UploadImageIfNecessary(draw_image, found->second.get());
}
-void GpuImageDecodeController::DecodeTaskCompleted(
+void GpuImageDecodeController::OnImageDecodeTaskCompleted(
const DrawImage& draw_image) {
base::AutoLock lock(lock_);
// Decode task is complete, remove it from our list of pending tasks.
@@ -454,7 +453,7 @@ void GpuImageDecodeController::DecodeTaskCompleted(
UnrefImageDecode(draw_image);
}
-void GpuImageDecodeController::UploadTaskCompleted(
+void GpuImageDecodeController::OnImageUploadTaskCompleted(
const DrawImage& draw_image) {
base::AutoLock lock(lock_);
// Upload task is complete, remove it from our list of pending tasks.
« no previous file with comments | « cc/tiles/gpu_image_decode_controller.h ('k') | cc/tiles/gpu_image_decode_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698