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

Unified Diff: android_webview/browser/shared_renderer_state.h

Issue 408803002: aw: Release hardware onTrimMemory(MODERATE) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: refactor and use MODERATE Created 6 years, 5 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/shared_renderer_state.h
diff --git a/android_webview/browser/shared_renderer_state.h b/android_webview/browser/shared_renderer_state.h
index 89554ac8e12aea4648a4aac5b2a84a8a74030056..2ccea9b56b61204f3066c6e71edafa4c1a58931b 100644
--- a/android_webview/browser/shared_renderer_state.h
+++ b/android_webview/browser/shared_renderer_state.h
@@ -49,8 +49,8 @@ class SharedRendererState {
scoped_ptr<DrawGLInput> PassDrawGLInput();
// Set by UI and read by RT.
- void SetHardwareAllowed(bool allowed);
- bool IsHardwareAllowed() const;
+ void SetInsideHardwareRelease(bool inside);
+ bool IsInsideHardwareRelease() const;
void SetSharedContext(gpu::GLInProcessContext* context);
gpu::GLInProcessContext* GetSharedContext() const;
@@ -70,7 +70,7 @@ class SharedRendererState {
// Accessed by both UI and RT thread.
mutable base::Lock lock_;
scoped_ptr<DrawGLInput> draw_gl_input_;
- bool hardware_allowed_;
+ bool inside_hardware_release_;
gpu::GLInProcessContext* share_context_;
cc::ReturnedResourceArray returned_resources_;
};

Powered by Google App Engine
This is Rietveld 408576698