Index: third_party/WebKit/public/platform/Platform.h |
diff --git a/third_party/WebKit/public/platform/Platform.h b/third_party/WebKit/public/platform/Platform.h |
index ff4e822dfd09b365bcf7f9a335d67499517ea6fc..94d67e9720324c1b7f1f745a3d21f479dfc92aec 100644 |
--- a/third_party/WebKit/public/platform/Platform.h |
+++ b/third_party/WebKit/public/platform/Platform.h |
@@ -554,6 +554,12 @@ class BLINK_PLATFORM_EXPORT Platform { |
return nullptr; |
} |
+ // Whether the command line flag: --disable-gpu-compositing or --disable-gpu |
+ // exists or not |
+ // NOTE: This function should not be called from core/ and modules/, but |
+ // called by platform/graphics/ is fine. |
+ virtual bool isGPUCompositingEnabled() { return true; } |
+ |
// WebRTC ---------------------------------------------------------- |
// Creates a WebRTCPeerConnectionHandler for RTCPeerConnection. |