| Index: android_webview/browser/shared_renderer_state.cc
|
| diff --git a/android_webview/browser/shared_renderer_state.cc b/android_webview/browser/shared_renderer_state.cc
|
| index fb17afbbcdc2fa89ce23feb2a130397963d5869e..5a89c3acd70488ddd37c406a8b09ab449812c410 100644
|
| --- a/android_webview/browser/shared_renderer_state.cc
|
| +++ b/android_webview/browser/shared_renderer_state.cc
|
| @@ -56,6 +56,19 @@ content::SynchronousCompositor* SharedRendererState::GetCompositor() {
|
| return compositor_;
|
| }
|
|
|
| +void SharedRendererState::SetMemoryPolicy(
|
| + const content::SynchronousCompositorMemoryPolicy new_policy) {
|
| + if (memory_policy_ != new_policy) {
|
| + memory_policy_ = new_policy;
|
| + memory_policy_dirty_ = true;
|
| + }
|
| +}
|
| +
|
| +content::SynchronousCompositorMemoryPolicy
|
| +SharedRendererState::GetMemoryPolicy() const {
|
| + return memory_policy_;
|
| +}
|
| +
|
| void SharedRendererState::SetDrawGLInput(const DrawGLInput& input) {
|
| draw_gl_input_ = input;
|
| }
|
| @@ -64,4 +77,12 @@ DrawGLInput SharedRendererState::GetDrawGLInput() const {
|
| return draw_gl_input_;
|
| }
|
|
|
| +void SharedRendererState::SetMemoryPolicyDirty(bool is_dirty) {
|
| + memory_policy_dirty_ = is_dirty;
|
| +}
|
| +
|
| +bool SharedRendererState::IsMemoryPolicyDirty() const {
|
| + return memory_policy_dirty_;
|
| +}
|
| +
|
| } // namespace android_webview
|
|
|