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

Unified Diff: cc/raster/gpu_raster_buffer_provider.cc

Issue 2161933004: Re-enable GPU partial raster for non-MSAA content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@perftest
Patch Set: 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 | « no previous file | cc/trees/layer_tree_host_pixeltest_tiles.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/raster/gpu_raster_buffer_provider.cc
diff --git a/cc/raster/gpu_raster_buffer_provider.cc b/cc/raster/gpu_raster_buffer_provider.cc
index 86dc0105a477f3ca2ae3f9aa9ba6e6e294c8718e..f4eadee502105419071aa77d8fdf221b9cd64e9b 100644
--- a/cc/raster/gpu_raster_buffer_provider.cc
+++ b/cc/raster/gpu_raster_buffer_provider.cc
@@ -226,7 +226,10 @@ bool GpuRasterBufferProvider::IsResourceSwizzleRequired(
}
bool GpuRasterBufferProvider::CanPartialRasterIntoProvidedResource() const {
- return false;
+ // Partial raster doesn't support MSAA, as the MSAA resolve is unaware of clip
+ // rects.
+ // TODO(crbug.com/629683): See if we can work around this limitation.
+ return msaa_sample_count_ == 0;
}
void GpuRasterBufferProvider::Shutdown() {
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_pixeltest_tiles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698