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_TILE_RESOURCE_CONSUMER_H_ | |
6 #define ANDROID_WEBVIEW_BROWSER_TILE_RESOURCE_CONSUMER_H_ | |
7 | |
8 namespace android_webview { | |
9 // TileResourceConsumer is a class that requests tile resources from | |
10 // GlobalTileManager. | |
11 class TileResourceConsumer { | |
boliu
2014/04/28 22:22:15
Call this GlobalTileManagerClient
hush (inactive)
2014/04/30 20:50:17
Done.
| |
12 public: | |
13 virtual size_t CalculateTileRequest() = 0; | |
boliu
2014/04/28 22:22:15
const
hush (inactive)
2014/04/30 20:50:17
Done.
| |
14 virtual size_t ForceDropTiles() = 0; | |
15 virtual bool IsStarved() = 0; | |
boliu
2014/04/28 22:22:15
Not needed
hush (inactive)
2014/04/30 20:50:17
Actually, we need a function for the client to tel
| |
16 virtual ~TileResourceConsumer() {} | |
boliu
2014/04/28 22:22:15
In protected section
hush (inactive)
2014/04/30 20:50:17
Done.
| |
17 }; | |
18 | |
19 } // namespace android_webview | |
20 | |
21 #endif | |
boliu
2014/04/28 22:22:15
comment on endif (yes I know, stupid...)
hush (inactive)
2014/04/30 20:50:17
Done.
| |
OLD | NEW |