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

Unified Diff: android_webview/browser/hardware_renderer.h

Issue 226363004: Global GPU memory manager for android webview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Type casts and private methods in BVR. 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/hardware_renderer.h
diff --git a/android_webview/browser/hardware_renderer.h b/android_webview/browser/hardware_renderer.h
index 09580eb5f20e89883ad27e0e514b28585fae7c94..b290058eff410ebd136ce9dc871ab20f6f341bdf 100644
--- a/android_webview/browser/hardware_renderer.h
+++ b/android_webview/browser/hardware_renderer.h
@@ -12,7 +12,6 @@
#include "base/lazy_instance.h"
#include "base/memory/ref_counted.h"
#include "base/threading/thread_local.h"
-#include "content/public/browser/android/synchronous_compositor.h"
struct AwDrawGLInfo;
@@ -30,15 +29,12 @@ class HardwareRenderer {
explicit HardwareRenderer(SharedRendererState* state);
~HardwareRenderer();
- static void CalculateTileMemoryPolicy();
-
bool DrawGL(AwDrawGLInfo* draw_info, DrawGLResult* result);
- bool TrimMemory(int level, bool visible);
private:
friend class internal::DeferredGpuCommandService;
- void SetMemoryPolicy(content::SynchronousCompositorMemoryPolicy& new_policy);
+ void SetCompositorMemoryPolicy();
SharedRendererState* shared_renderer_state_;
@@ -46,9 +42,8 @@ class HardwareRenderer {
EGLContext last_egl_context_;
scoped_refptr<AwGLSurface> gl_surface_;
- content::SynchronousCompositorMemoryPolicy memory_policy_;
- GLViewRendererManager::Key manager_key_;
+ GLViewRendererManager::Key renderer_manager_key_;
DISALLOW_COPY_AND_ASSIGN(HardwareRenderer);
};
« no previous file with comments | « android_webview/browser/global_tile_manager_unittest.cc ('k') | android_webview/browser/hardware_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698