| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |