diff options
Diffstat (limited to 'android_webview/browser/in_process_view_renderer.h')
-rw-r--r-- | android_webview/browser/in_process_view_renderer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/android_webview/browser/in_process_view_renderer.h b/android_webview/browser/in_process_view_renderer.h index ce5c584..42eac24 100644 --- a/android_webview/browser/in_process_view_renderer.h +++ b/android_webview/browser/in_process_view_renderer.h @@ -10,6 +10,7 @@ #include "android_webview/browser/browser_view_renderer.h" #include "android_webview/browser/gl_view_renderer_manager.h" #include "base/cancelable_callback.h" +#include "content/public/browser/android/synchronous_compositor.h" #include "content/public/browser/android/synchronous_compositor_client.h" #include "ui/gfx/vector2d_f.h" @@ -71,6 +72,7 @@ class InProcessViewRenderer : public BrowserViewRenderer, virtual bool IsAttachedToWindow() OVERRIDE; virtual bool IsVisible() OVERRIDE; virtual gfx::Rect GetScreenRect() OVERRIDE; + virtual void TrimMemory(int level) OVERRIDE; // SynchronousCompositorClient overrides virtual void DidInitializeCompositor( @@ -108,6 +110,7 @@ class InProcessViewRenderer : public BrowserViewRenderer, // If we call up view invalidate and OnDraw is not called before a deadline, // then we keep ticking the SynchronousCompositor so it can make progress. void FallbackTickFired(); + void ForceFakeCompositeSW(); void NoLongerExpectsDrawGL(); @@ -115,6 +118,8 @@ class InProcessViewRenderer : public BrowserViewRenderer, gfx::Vector2d max_scroll_offset() const; + void SetMemoryPolicy(content::SynchronousCompositorMemoryPolicy& new_policy); + // For debug tracing or logging. Return the string representation of this // view renderer's state and the |draw_info| if provided. std::string ToString(AwDrawGLInfo* draw_info) const; @@ -176,6 +181,8 @@ class InProcessViewRenderer : public BrowserViewRenderer, GLViewRendererManager::Key manager_key_; + content::SynchronousCompositorMemoryPolicy memory_policy_; + DISALLOW_COPY_AND_ASSIGN(InProcessViewRenderer); }; |