• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef ANDROID_WEBVIEW_BROWSER_GLOBAL_TILE_MANAGER_CLIENT_H_
6 #define ANDROID_WEBVIEW_BROWSER_GLOBAL_TILE_MANAGER_CLIENT_H_
7 
8 #include "content/public/browser/android/synchronous_compositor.h"
9 
10 namespace android_webview {
11 // GlobalTileManagerClient requests tile resources from GlobalTileManager.
12 class GlobalTileManagerClient {
13  public:
14   // Get tile memory policy for the client.
15   virtual content::SynchronousCompositorMemoryPolicy GetMemoryPolicy()
16       const = 0;
17 
18   // Set tile memory policy of the client. When |effective_immediately| is
19   // true, the client will enforce its tile policy immediately.
20   virtual void SetMemoryPolicy(
21       content::SynchronousCompositorMemoryPolicy new_policy,
22       bool effective_immediately) = 0;
23 
24  protected:
~GlobalTileManagerClient()25   virtual ~GlobalTileManagerClient() {}
26 };
27 
28 }  // namespace android_webview
29 
30 #endif  // ANDROID_WEBVIEW_BROWSER_GLOBAL_TILE_MANAGER_CLIENT_H_
31