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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 443133002: Fix widget visibility accounting when crashing in background. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | no next file » | 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) 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 #include "content/browser/renderer_host/render_widget_host_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after
1191 renderer_initialized_ = false; 1191 renderer_initialized_ = false;
1192 1192
1193 waiting_for_screen_rects_ack_ = false; 1193 waiting_for_screen_rects_ack_ = false;
1194 1194
1195 // Must reset these to ensure that keyboard events work with a new renderer. 1195 // Must reset these to ensure that keyboard events work with a new renderer.
1196 suppress_next_char_events_ = false; 1196 suppress_next_char_events_ = false;
1197 1197
1198 // Reset some fields in preparation for recovering from a crash. 1198 // Reset some fields in preparation for recovering from a crash.
1199 ResetSizeAndRepaintPendingFlags(); 1199 ResetSizeAndRepaintPendingFlags();
1200 current_size_.SetSize(0, 0); 1200 current_size_.SetSize(0, 0);
1201 is_hidden_ = false;
1202 1201
1203 // Reset this to ensure the hung renderer mechanism is working properly. 1202 // Reset this to ensure the hung renderer mechanism is working properly.
1204 in_flight_event_count_ = 0; 1203 in_flight_event_count_ = 0;
1205 1204
1206 if (view_) { 1205 if (view_) {
1207 GpuSurfaceTracker::Get()->SetSurfaceHandle(surface_id_, 1206 GpuSurfaceTracker::Get()->SetSurfaceHandle(surface_id_,
1208 gfx::GLSurfaceHandle()); 1207 gfx::GLSurfaceHandle());
1209 view_->RenderProcessGone(status, exit_code); 1208 view_->RenderProcessGone(status, exit_code);
1210 view_ = NULL; // The View should be deleted by RenderProcessGone. 1209 view_ = NULL; // The View should be deleted by RenderProcessGone.
1211 } 1210 }
(...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after
2302 } 2301 }
2303 #endif 2302 #endif
2304 2303
2305 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() { 2304 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() {
2306 if (view_) 2305 if (view_)
2307 return view_->PreferredReadbackFormat(); 2306 return view_->PreferredReadbackFormat();
2308 return kN32_SkColorType; 2307 return kN32_SkColorType;
2309 } 2308 }
2310 2309
2311 } // namespace content 2310 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698