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

Unified Diff: content/browser/gpu/compositor_util.cc

Issue 1139063002: cc: Partial tile update for one-copy raster. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: monocle: tilemanagerconsistency Created 5 years, 7 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: content/browser/gpu/compositor_util.cc
diff --git a/content/browser/gpu/compositor_util.cc b/content/browser/gpu/compositor_util.cc
index a652c39dbd9c6bc62ecff1ff5dc7a4e15dfb3486..6abe2e54172bf56a6be47b1a5030344008243cf6 100644
--- a/content/browser/gpu/compositor_util.cc
+++ b/content/browser/gpu/compositor_util.cc
@@ -268,6 +268,20 @@ bool IsZeroCopyUploadEnabled() {
return command_line.HasSwitch(switches::kEnableZeroCopy);
}
+bool HavePersistentGpuMemoryBuffers() {
+ // We don't need to support this for ZeroCopy as it can't do anything with it
+ // yet.
+ if (IsZeroCopyUploadEnabled())
+ return false;
+ const base::CommandLine& command_line =
+ *base::CommandLine::ForCurrentProcess();
+ if (command_line.HasSwitch(switches::kEnableNativeGpuMemoryBuffers)) {
+ // TODO(reveman): Need native support for this. crbug.com/489438
+ return false;
+ }
+ return true;
+}
reveman 2015/05/22 17:15:13 How about we land the initial version of this with
danakj 2015/05/26 19:02:52 Sure, if you like. That'll make reverts smaller.
danakj 2015/05/26 23:37:34 Done.
+
bool IsGpuRasterizationEnabled() {
const base::CommandLine& command_line =
*base::CommandLine::ForCurrentProcess();

Powered by Google App Engine
This is Rietveld 408576698