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

Unified Diff: cc/raster/zero_copy_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/zero_copy_raster_buffer_provider.h ('k') | cc/resources/resource_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/raster/zero_copy_raster_buffer_provider.cc
diff --git a/cc/raster/zero_copy_raster_buffer_provider.cc b/cc/raster/zero_copy_raster_buffer_provider.cc
index b0b216201b7cc93dedb31aa0a236ced5e4288253..e33bbf5b126e8d7908b4249bc0079f988243e1e9 100644
--- a/cc/raster/zero_copy_raster_buffer_provider.cc
+++ b/cc/raster/zero_copy_raster_buffer_provider.cc
@@ -125,6 +125,20 @@ bool ZeroCopyRasterBufferProvider::CanPartialRasterIntoProvidedResource()
return false;
}
+bool ZeroCopyRasterBufferProvider::IsResourceReadyToDraw(
+ ResourceId resource_id) const {
+ // Zero-copy resources are immediately ready to draw.
+ return true;
+}
+
+uint64_t ZeroCopyRasterBufferProvider::SetReadyToDrawCallback(
+ const ResourceProvider::ResourceIdArray& resource_ids,
+ const base::Callback<void(uint64_t)>& callback,
+ uint64_t pending_callback_id) const {
+ // Zero-copy resources are immediately ready to draw.
+ return 0;
+}
+
void ZeroCopyRasterBufferProvider::Shutdown() {}
} // namespace cc
« no previous file with comments | « cc/raster/zero_copy_raster_buffer_provider.h ('k') | cc/resources/resource_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698