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

Unified Diff: cc/raster/bitmap_raster_buffer_provider.cc

Issue 2560253003: Delay Activation/Draw in smoothness mode.
Patch Set: more unit tests Created 4 years 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 c92d5d66c740abf1f6f6caa4cf7ce4f47d2f9551..4546744b765b3b6101e6114ce6ad2c00ab2d9d91 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::Callback<void(uint64_t)>& 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