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

Unified Diff: cc/raster/bitmap_raster_buffer_provider.cc

Issue 2555743004: Delay activation/draw on GPU tile work completion (Closed)
Patch Set: rebase compile fix Created 3 years, 11 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/raster/bitmap_raster_buffer_provider.h ('k') | cc/raster/gpu_raster_buffer_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/raster/bitmap_raster_buffer_provider.cc
diff --git a/cc/raster/bitmap_raster_buffer_provider.cc b/cc/raster/bitmap_raster_buffer_provider.cc
index 5ff8e4f1cee77676c6ac1926ae8c0a04e7c6adb7..3d6d0a47df07c0afad3905f303ffe93b7f8f6ed5 100644
--- a/cc/raster/bitmap_raster_buffer_provider.cc
+++ b/cc/raster/bitmap_raster_buffer_provider.cc
@@ -116,6 +116,20 @@ bool BitmapRasterBufferProvider::CanPartialRasterIntoProvidedResource() const {
return true;
}
+bool BitmapRasterBufferProvider::IsResourceReadyToDraw(
+ ResourceId resource_id) const {
+ // Bitmap resources are immediately ready to draw.
+ return true;
+}
+
+uint64_t BitmapRasterBufferProvider::SetReadyToDrawCallback(
+ const ResourceProvider::ResourceIdArray& resource_ids,
+ const base::Closure& callback,
+ uint64_t pending_callback_id) const {
+ // Bitmap resources are immediately ready to draw.
+ return 0;
+}
+
void BitmapRasterBufferProvider::Shutdown() {}
} // namespace cc
« no previous file with comments | « cc/raster/bitmap_raster_buffer_provider.h ('k') | cc/raster/gpu_raster_buffer_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698