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

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

Issue 1975273003: aw: Avoid livelock bouncing between zero and non-zero memory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert fix Created 4 years, 7 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
« no previous file with comments | « no previous file | android_webview/browser/browser_view_renderer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_BROWSER_VIEW_RENDERER_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 float dip_scale() const { return dip_scale_; } 92 float dip_scale() const { return dip_scale_; }
93 float page_scale_factor() const { return page_scale_factor_; } 93 float page_scale_factor() const { return page_scale_factor_; }
94 94
95 // Set the root layer scroll offset to |new_value|. 95 // Set the root layer scroll offset to |new_value|.
96 void ScrollTo(const gfx::Vector2d& new_value); 96 void ScrollTo(const gfx::Vector2d& new_value);
97 97
98 // Android views hierarchy gluing. 98 // Android views hierarchy gluing.
99 bool IsVisible() const; 99 bool IsVisible() const;
100 gfx::Rect GetScreenRect() const; 100 gfx::Rect GetScreenRect() const;
101 bool attached_to_window() const { return attached_to_window_; } 101 bool attached_to_window() const { return attached_to_window_; }
102 bool hardware_enabled() const { return hardware_enabled_; }
103 gfx::Size size() const { return size_; } 102 gfx::Size size() const { return size_; }
104 103
105 bool IsClientVisible() const; 104 bool IsClientVisible() const;
106 void TrimMemory(); 105 void TrimMemory();
107 106
108 // SynchronousCompositorClient overrides. 107 // SynchronousCompositorClient overrides.
109 void DidInitializeCompositor( 108 void DidInitializeCompositor(
110 content::SynchronousCompositor* compositor) override; 109 content::SynchronousCompositor* compositor) override;
111 void DidDestroyCompositor( 110 void DidDestroyCompositor(
112 content::SynchronousCompositor* compositor) override; 111 content::SynchronousCompositor* compositor) override;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 uint32_t next_compositor_id_; 198 uint32_t next_compositor_id_;
200 199
201 ParentCompositorDrawConstraints external_draw_constraints_; 200 ParentCompositorDrawConstraints external_draw_constraints_;
202 201
203 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); 202 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer);
204 }; 203 };
205 204
206 } // namespace android_webview 205 } // namespace android_webview
207 206
208 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 207 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/browser_view_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698