Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2740)

Unified Diff: android_webview/browser/tile_resource_consumer.h

Issue 226363004: Global GPU memory manager for android webview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary code Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: android_webview/browser/tile_resource_consumer.h
diff --git a/android_webview/browser/tile_resource_consumer.h b/android_webview/browser/tile_resource_consumer.h
new file mode 100644
index 0000000000000000000000000000000000000000..b25fe6fdd730ca9ec037d89c894e9ab510aa6d38
--- /dev/null
+++ b/android_webview/browser/tile_resource_consumer.h
@@ -0,0 +1,21 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ANDROID_WEBVIEW_BROWSER_TILE_RESOURCE_CONSUMER_H_
+#define ANDROID_WEBVIEW_BROWSER_TILE_RESOURCE_CONSUMER_H_
+
+namespace android_webview {
+// TileResourceConsumer is a class that requests tile resources from
+// GlobalTileManager.
+class TileResourceConsumer {
boliu 2014/04/28 22:22:15 Call this GlobalTileManagerClient
hush (inactive) 2014/04/30 20:50:17 Done.
+ public:
+ virtual size_t CalculateTileRequest() = 0;
boliu 2014/04/28 22:22:15 const
hush (inactive) 2014/04/30 20:50:17 Done.
+ virtual size_t ForceDropTiles() = 0;
+ 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
+ virtual ~TileResourceConsumer() {}
boliu 2014/04/28 22:22:15 In protected section
hush (inactive) 2014/04/30 20:50:17 Done.
+};
+
+} // namespace android_webview
+
+#endif
boliu 2014/04/28 22:22:15 comment on endif (yes I know, stupid...)
hush (inactive) 2014/04/30 20:50:17 Done.

Powered by Google App Engine
This is Rietveld 408576698