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

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

Issue 1366473002: Move WakeUpGpu logic to GpuChannelManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo Created 5 years, 3 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
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 ef6a2893198e5ed30c9862e656107f99b1498aa4..14205e8cce3424819f293acff405c4bb5a2fe4be 100644
--- a/content/browser/renderer_host/render_widget_host_view_android.cc
+++ b/content/browser/renderer_host/render_widget_host_view_android.cc
@@ -326,7 +326,6 @@ RenderWidgetHostViewAndroid::RenderWidgetHostViewAndroid(
ui::GestureProviderConfigType::CURRENT_PLATFORM),
this),
stylus_text_selector_(this),
- accelerated_surface_route_id_(0),
using_browser_compositor_(CompositorImpl::IsInitialized()),
frame_evictor_(new DelegatedFrameEvictor(this)),
locks_on_frame_count_(0),
@@ -1347,11 +1346,6 @@ void RenderWidgetHostViewAndroid::OnFrameMetadataUpdated(
#endif // defined(VIDEO_HOLE)
}
-void RenderWidgetHostViewAndroid::AcceleratedSurfaceInitialized(int route_id) {
- // TODO: remove need for the surface id here
- accelerated_surface_route_id_ = route_id;
-}
-
void RenderWidgetHostViewAndroid::ShowInternal() {
DCHECK(is_showing_);
if (!host_ || !host_->is_hidden())
@@ -1609,10 +1603,9 @@ InputEventAckState RenderWidgetHostViewAndroid::FilterInputEvent(
input_event.type == blink::WebInputEvent::TouchStart) {
GpuDataManagerImpl* gpu_data = GpuDataManagerImpl::GetInstance();
GpuProcessHostUIShim* shim = GpuProcessHostUIShim::GetOneInstance();
- if (shim && gpu_data && accelerated_surface_route_id_ &&
+ if (shim && gpu_data &&
gpu_data->IsDriverBugWorkaroundActive(gpu::WAKE_UP_GPU_BEFORE_DRAWING))
- shim->Send(
- new AcceleratedSurfaceMsg_WakeUpGpu(accelerated_surface_route_id_));
+ shim->Send(new GpuMsg_WakeUpGpu);
}
SynchronousCompositorImpl* compositor =

Powered by Google App Engine
This is Rietveld 408576698