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

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

Issue 1985483002: [Merge M51] aw: Avoid livelock bouncing between zero and non-zero memory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 float dip_scale() const { return dip_scale_; } 90 float dip_scale() const { return dip_scale_; }
91 float page_scale_factor() const { return page_scale_factor_; } 91 float page_scale_factor() const { return page_scale_factor_; }
92 92
93 // Set the root layer scroll offset to |new_value|. 93 // Set the root layer scroll offset to |new_value|.
94 void ScrollTo(const gfx::Vector2d& new_value); 94 void ScrollTo(const gfx::Vector2d& new_value);
95 95
96 // Android views hierarchy gluing. 96 // Android views hierarchy gluing.
97 bool IsVisible() const; 97 bool IsVisible() const;
98 gfx::Rect GetScreenRect() const; 98 gfx::Rect GetScreenRect() const;
99 bool attached_to_window() const { return attached_to_window_; } 99 bool attached_to_window() const { return attached_to_window_; }
100 bool hardware_enabled() const { return hardware_enabled_; }
101 gfx::Size size() const { return size_; } 100 gfx::Size size() const { return size_; }
102 101
103 bool IsClientVisible() const; 102 bool IsClientVisible() const;
104 void TrimMemory(); 103 void TrimMemory();
105 104
106 // SynchronousCompositorClient overrides. 105 // SynchronousCompositorClient overrides.
107 void DidInitializeCompositor( 106 void DidInitializeCompositor(
108 content::SynchronousCompositor* compositor) override; 107 content::SynchronousCompositor* compositor) override;
109 void DidDestroyCompositor( 108 void DidDestroyCompositor(
110 content::SynchronousCompositor* compositor) override; 109 content::SynchronousCompositor* compositor) override;
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 uint32_t next_compositor_id_; 195 uint32_t next_compositor_id_;
197 196
198 ParentCompositorDrawConstraints external_draw_constraints_; 197 ParentCompositorDrawConstraints external_draw_constraints_;
199 198
200 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); 199 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer);
201 }; 200 };
202 201
203 } // namespace android_webview 202 } // namespace android_webview
204 203
205 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 204 #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