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

Unified Diff: cc/raster/one_copy_raster_buffer_provider.cc

Issue 2110083004: Partial raster for GPU (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@partialuma2
Patch Set: Add missing resource cleanup to unit tests. Created 4 years, 5 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/one_copy_raster_buffer_provider.h ('k') | cc/raster/raster_buffer_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/raster/one_copy_raster_buffer_provider.cc
diff --git a/cc/raster/one_copy_raster_buffer_provider.cc b/cc/raster/one_copy_raster_buffer_provider.cc
index 44e38458cb05731b40a769f3a390a7b10bd40c85..f0f6b0f36b0dff08cc366b714cd47eea726680c9 100644
--- a/cc/raster/one_copy_raster_buffer_provider.cc
+++ b/cc/raster/one_copy_raster_buffer_provider.cc
@@ -153,8 +153,11 @@ bool OneCopyRasterBufferProvider::IsResourceSwizzleRequired(
return ResourceFormatRequiresSwizzle(GetResourceFormat(must_support_alpha));
}
-bool OneCopyRasterBufferProvider::IsPartialRasterSupported() const {
- return true;
+bool OneCopyRasterBufferProvider::CanPartialRasterIntoProvidedResource() const {
+ // While OneCopyRasterBufferProvider has an internal partial raster
+ // implementation, it cannot directly partial raster into the externally
+ // owned resource provided in AcquireBufferForRaster.
+ return false;
}
void OneCopyRasterBufferProvider::Shutdown() {
« no previous file with comments | « cc/raster/one_copy_raster_buffer_provider.h ('k') | cc/raster/raster_buffer_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698