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

Unified Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 14254004: Android: Throttle the renderer harder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_android.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_android.cc b/content/browser/renderer_host/render_widget_host_view_android.cc
index 19313450b46c6c7a544422e95e7e40bb7e53e0d6..a80d25330fbdf1e79565c99ebdf98224476bda85 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -77,8 +77,7 @@ RenderWidgetHostViewAndroid::RenderWidgetHostViewAndroid(
content_view_core_(NULL),
ime_adapter_android_(ALLOW_THIS_IN_INITIALIZER_LIST(this)),
cached_background_color_(SK_ColorWHITE),
- texture_id_in_layer_(0),
- consumed_current_texture_(true) {
+ texture_id_in_layer_(0) {
if (CompositorImpl::UsesDirectGL()) {
surface_texture_transport_.reset(new SurfaceTextureTransportClient());
layer_ = surface_texture_transport_->Initialize();
@@ -633,12 +632,10 @@ void RenderWidgetHostViewAndroid::BuffersSwapped(
texture_size_in_layer_ = texture_size;
current_mailbox_ = mailbox;
- if (consumed_current_texture_ || host_->is_hidden())
+ if (host_->is_hidden())
ack_callback.Run();
else
ack_callbacks_.push(ack_callback);
-
- consumed_current_texture_ = false;
}
void RenderWidgetHostViewAndroid::AcceleratedSurfacePostSubBuffer(
@@ -807,7 +804,6 @@ void RenderWidgetHostViewAndroid::HasTouchEventHandlers(
unsigned RenderWidgetHostViewAndroid::PrepareTexture(
cc::ResourceUpdateQueue* queue) {
RunAckCallbacks();
- consumed_current_texture_ = true;
return texture_id_in_layer_;
}
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_android.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698