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

Unified Diff: cc/raster/bitmap_raster_buffer_provider.cc

Issue 2555743004: Delay activation/draw on GPU tile work completion (Closed)
Patch Set: rebase 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
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 c92d5d66c740abf1f6f6caa4cf7ce4f47d2f9551..32db95cdb17fbe670a3047d23432a6b78e462734 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

Powered by Google App Engine
This is Rietveld 408576698