Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 namespace android_webview { | |
| 9 // GlobalTileManagerClient requests tile resources from GlobalTileManager. | |
| 10 class GlobalTileManagerClient { | |
| 11 public: | |
| 12 // Calculate how many tiles are needed. | |
| 13 virtual size_t CalculateTileRequest() const = 0; | |
|
boliu
2014/05/01 00:37:40
new line after each method declaration
hush (inactive)
2014/05/01 19:03:04
Done.
| |
| 14 // Force drop the hardware tiles in gpu. | |
| 15 virtual size_t ForceDropTiles() = 0; | |
| 16 // True if the client wants the manager to evict other clients, when the | |
| 17 // manager cannot satisfy this client's tile request. | |
| 18 virtual bool NeedsEviction() const = 0; | |
| 19 // Get the number of tiles allocated to the client. | |
| 20 virtual size_t GetTilesNum() const = 0; | |
|
boliu
2014/05/01 00:37:40
GetNumTiles?
Also add comment saying it's only ca
hush (inactive)
2014/05/01 19:03:04
Changed the function name.
Actually I use it more
| |
| 21 | |
| 22 protected: | |
| 23 virtual ~GlobalTileManagerClient() {} | |
| 24 }; | |
| 25 | |
| 26 } // namespace android_webview | |
| 27 | |
| 28 #endif // ANDROID_WEBVIEW_BROWSER_GLOBAL_TILE_MANAGER_CLIENT_H_ | |
| OLD | NEW |