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

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

Issue 1082393003: TrimMemory strategy while offscreenPreRaster is on. (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: comments Created 5 years, 8 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 "android_webview/browser/parent_compositor_draw_constraints.h" 8 #include "android_webview/browser/parent_compositor_draw_constraints.h"
9 #include "android_webview/browser/shared_renderer_state.h" 9 #include "android_webview/browser/shared_renderer_state.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 void PostFallbackTick(); 138 void PostFallbackTick();
139 void FallbackTickFired(); 139 void FallbackTickFired();
140 140
141 // Force invoke the compositor to run produce a 1x1 software frame that is 141 // Force invoke the compositor to run produce a 1x1 software frame that is
142 // immediately discarded. This is a hack to force invoke parts of the 142 // immediately discarded. This is a hack to force invoke parts of the
143 // compositor that are not directly exposed here. 143 // compositor that are not directly exposed here.
144 void ForceFakeCompositeSW(); 144 void ForceFakeCompositeSW();
145 145
146 gfx::Vector2d max_scroll_offset() const; 146 gfx::Vector2d max_scroll_offset() const;
147 147
148 size_t CalculateDesiredMemoryPolicy(); 148 void UpdateMemoryPolicy();
149 149
150 // For debug tracing or logging. Return the string representation of this 150 // For debug tracing or logging. Return the string representation of this
151 // view renderer's state. 151 // view renderer's state.
152 std::string ToString() const; 152 std::string ToString() const;
153 153
154 BrowserViewRendererClient* client_; 154 BrowserViewRendererClient* client_;
155 SharedRendererState shared_renderer_state_; 155 SharedRendererState shared_renderer_state_;
156 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_; 156 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_;
157 157
158 content::SynchronousCompositor* compositor_; 158 content::SynchronousCompositor* compositor_;
(...skipping 29 matching lines...) Expand all
188 // visible skew (especially noticeable when scrolling up and down in the same 188 // visible skew (especially noticeable when scrolling up and down in the same
189 // spot over a period of time). 189 // spot over a period of time).
190 gfx::Vector2dF overscroll_rounding_error_; 190 gfx::Vector2dF overscroll_rounding_error_;
191 191
192 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); 192 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer);
193 }; 193 };
194 194
195 } // namespace android_webview 195 } // namespace android_webview
196 196
197 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 197 #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