Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / content / public / browser / gpu_data_manager.h
index 7ffc9f1..a29575f 100644 (file)
@@ -57,9 +57,15 @@ class GpuDataManager {
   // contains a description of the reason why GPU access is blocked.
   virtual bool GpuAccessAllowed(std::string* reason) const = 0;
 
-  // Requests complete GPUinfo if it has not already been requested
+  // Requests complete GPU info if it has not already been requested
   virtual void RequestCompleteGpuInfoIfNeeded() = 0;
 
+  // Check if basic and context GPU info have been collected.
+  virtual bool IsEssentialGpuInfoAvailable() const = 0;
+
+  // On Windows, besides basic and context GPU info, it also checks if
+  // DxDiagnostics have been collected.
+  // On other platforms, it's the same as IsEsentialGpuInfoAvailable().
   virtual bool IsCompleteGpuInfoAvailable() const = 0;
 
   // Requests that the GPU process report its current video memory usage stats,
@@ -72,6 +78,10 @@ class GpuDataManager {
   // Register a path to SwiftShader.
   virtual void RegisterSwiftShaderPath(const base::FilePath& path) = 0;
 
+  // Returns current state about WARP, which may be due to command-line
+  // arguments or saved state.
+  virtual bool ShouldUseWarp() const = 0;
+
   // Registers/unregister |observer|.
   virtual void AddObserver(GpuDataManagerObserver* observer) = 0;
   virtual void RemoveObserver(GpuDataManagerObserver* observer) = 0;