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

Side by Side Diff: android_webview/browser/in_process_view_renderer.h

Issue 25082006: [Android WebView] OnMemoryPressure to drop tile memory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ANDROID_WEBVIEW_BROWSER_IN_PROCESS_VIEW_RENDERER_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_IN_PROCESS_VIEW_RENDERER_H_
6 #define ANDROID_WEBVIEW_BROWSER_IN_PROCESS_VIEW_RENDERER_H_ 6 #define ANDROID_WEBVIEW_BROWSER_IN_PROCESS_VIEW_RENDERER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "android_webview/browser/browser_view_renderer.h" 10 #include "android_webview/browser/browser_view_renderer.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 virtual void SetViewVisibility(bool visible) OVERRIDE; 64 virtual void SetViewVisibility(bool visible) OVERRIDE;
65 virtual void SetWindowVisibility(bool visible) OVERRIDE; 65 virtual void SetWindowVisibility(bool visible) OVERRIDE;
66 virtual void OnSizeChanged(int width, int height) OVERRIDE; 66 virtual void OnSizeChanged(int width, int height) OVERRIDE;
67 virtual void ScrollTo(gfx::Vector2d new_value) OVERRIDE; 67 virtual void ScrollTo(gfx::Vector2d new_value) OVERRIDE;
68 virtual void OnAttachedToWindow(int width, int height) OVERRIDE; 68 virtual void OnAttachedToWindow(int width, int height) OVERRIDE;
69 virtual void OnDetachedFromWindow() OVERRIDE; 69 virtual void OnDetachedFromWindow() OVERRIDE;
70 virtual void SetDipScale(float dip_scale) OVERRIDE; 70 virtual void SetDipScale(float dip_scale) OVERRIDE;
71 virtual bool IsAttachedToWindow() OVERRIDE; 71 virtual bool IsAttachedToWindow() OVERRIDE;
72 virtual bool IsVisible() OVERRIDE; 72 virtual bool IsVisible() OVERRIDE;
73 virtual gfx::Rect GetScreenRect() OVERRIDE; 73 virtual gfx::Rect GetScreenRect() OVERRIDE;
74 virtual void OnMemoryPressure(
75 base::MemoryPressureListener::MemoryPressureLevel memory_pressure_level)
76 OVERRIDE;
74 77
75 // SynchronousCompositorClient overrides 78 // SynchronousCompositorClient overrides
76 virtual void DidInitializeCompositor( 79 virtual void DidInitializeCompositor(
77 content::SynchronousCompositor* compositor) OVERRIDE; 80 content::SynchronousCompositor* compositor) OVERRIDE;
78 virtual void DidDestroyCompositor( 81 virtual void DidDestroyCompositor(
79 content::SynchronousCompositor* compositor) OVERRIDE; 82 content::SynchronousCompositor* compositor) OVERRIDE;
80 virtual void SetContinuousInvalidate(bool invalidate) OVERRIDE; 83 virtual void SetContinuousInvalidate(bool invalidate) OVERRIDE;
81 virtual void SetMaxRootLayerScrollOffset(gfx::Vector2dF new_value) OVERRIDE; 84 virtual void SetMaxRootLayerScrollOffset(gfx::Vector2dF new_value) OVERRIDE;
82 virtual void SetTotalRootLayerScrollOffset( 85 virtual void SetTotalRootLayerScrollOffset(
83 gfx::Vector2dF new_value_css) OVERRIDE; 86 gfx::Vector2dF new_value_css) OVERRIDE;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 gfx::Vector2dF overscroll_rounding_error_; 178 gfx::Vector2dF overscroll_rounding_error_;
176 179
177 GLViewRendererManager::Key manager_key_; 180 GLViewRendererManager::Key manager_key_;
178 181
179 DISALLOW_COPY_AND_ASSIGN(InProcessViewRenderer); 182 DISALLOW_COPY_AND_ASSIGN(InProcessViewRenderer);
180 }; 183 };
181 184
182 } // namespace android_webview 185 } // namespace android_webview
183 186
184 #endif // ANDROID_WEBVIEW_BROWSER_IN_PROCESS_VIEW_RENDERER_H_ 187 #endif // ANDROID_WEBVIEW_BROWSER_IN_PROCESS_VIEW_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698