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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.h

Issue 16290002: Android: Throttle BeginFrame messages sent from the browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: only allow one pending beginFrame Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 10
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 // The mailbox of the previously received frame. 266 // The mailbox of the previously received frame.
267 gpu::Mailbox current_mailbox_; 267 gpu::Mailbox current_mailbox_;
268 268
269 // The mailbox of the frame we last returned. 269 // The mailbox of the frame we last returned.
270 gpu::Mailbox last_mailbox_; 270 gpu::Mailbox last_mailbox_;
271 271
272 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 272 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
273 273
274 std::queue<base::Closure> ack_callbacks_; 274 std::queue<base::Closure> ack_callbacks_;
275 275
276 // Indicates that we are waiting for a frame from the renderer.
277 bool begin_frame_pending_;
278
276 // Used to render overscroll overlays. 279 // Used to render overscroll overlays.
277 scoped_ptr<OverscrollGlow> overscroll_effect_; 280 scoped_ptr<OverscrollGlow> overscroll_effect_;
278 281
279 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 282 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
280 }; 283 };
281 284
282 } // namespace content 285 } // namespace content
283 286
284 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 287 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698