Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / android_webview / browser / global_tile_manager_client.h
index ec4dad6..b9cc64e 100644 (file)
@@ -5,17 +5,21 @@
 #ifndef ANDROID_WEBVIEW_BROWSER_GLOBAL_TILE_MANAGER_CLIENT_H_
 #define ANDROID_WEBVIEW_BROWSER_GLOBAL_TILE_MANAGER_CLIENT_H_
 
+#include "content/public/browser/android/synchronous_compositor.h"
+
 namespace android_webview {
 // GlobalTileManagerClient requests tile resources from GlobalTileManager.
 class GlobalTileManagerClient {
  public:
-  // Get the number of tiles allocated to the client.
-  virtual size_t GetNumTiles() const = 0;
+  // Get tile memory policy for the client.
+  virtual content::SynchronousCompositorMemoryPolicy GetMemoryPolicy()
+      const = 0;
 
-  // Set the number of tiles allocated to the client. When
-  // |effective_immediately| is true, the client will enforce its tile policy
-  // immediately.
-  virtual void SetNumTiles(size_t num_tiles, bool effective_immediately) = 0;
+  // Set tile memory policy of the client. When |effective_immediately| is
+  // true, the client will enforce its tile policy immediately.
+  virtual void SetMemoryPolicy(
+      content::SynchronousCompositorMemoryPolicy new_policy,
+      bool effective_immediately) = 0;
 
  protected:
   virtual ~GlobalTileManagerClient() {}