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

Unified Diff: cc/resources/image_copy_raster_worker_pool.cc

Issue 454843002: cc: Do bitmap conversion for RasterBuffer in the worker thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code refactoring. 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 side-by-side diff with in-line comments
Download patch
Index: cc/resources/image_copy_raster_worker_pool.cc
diff --git a/cc/resources/image_copy_raster_worker_pool.cc b/cc/resources/image_copy_raster_worker_pool.cc
index 8220f28dc5d1005ff8c4534aa9adf1adb87632bd..6f11ed2a9428a3d9c03710653c4832e83a53bde2 100644
--- a/cc/resources/image_copy_raster_worker_pool.cc
+++ b/cc/resources/image_copy_raster_worker_pool.cc
@@ -191,13 +191,12 @@ void ImageCopyRasterWorkerPool::ReleaseBufferForRaster(RasterTask* task) {
std::swap(*it, raster_task_states_.back());
raster_task_states_.pop_back();
- bool content_has_changed =
- resource_provider_->ReleaseImageRasterBuffer(resource->id());
+ resource_provider_->ReleaseImageRasterBuffer(resource->id());
reveman 2014/08/13 19:19:49 Let's keep having this return true when contents m
auygun 2014/08/14 10:35:42 Done.
// |content_has_changed| can be false as result of task being canceled or
// task implementation deciding not to modify bitmap (ie. analysis of raster
// commands detected content as a solid color).
- if (content_has_changed) {
+ if (task->content_has_changed()) {
resource_provider_->CopyResource(resource->id(), task->resource()->id());
has_performed_copy_since_last_flush_ = true;
}
« no previous file with comments | « no previous file | cc/resources/pixel_buffer_raster_worker_pool.cc » ('j') | cc/resources/pixel_buffer_raster_worker_pool.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698