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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
412 GpuSurfaceTracker::Get()->SetSurfaceHandle( | 412 GpuSurfaceTracker::Get()->SetSurfaceHandle( |
413 surface_id_, GetCompositingSurface()); | 413 surface_id_, GetCompositingSurface()); |
414 | 414 |
415 // Send the ack along with the information on placement. | 415 // Send the ack along with the information on placement. |
416 Send(new ViewMsg_CreatingNew_ACK(routing_id_)); | 416 Send(new ViewMsg_CreatingNew_ACK(routing_id_)); |
417 GetProcess()->ResumeRequestsForView(routing_id_); | 417 GetProcess()->ResumeRequestsForView(routing_id_); |
418 | 418 |
419 WasResized(); | 419 WasResized(); |
420 } | 420 } |
421 | 421 |
422 void RenderWidgetHostImpl::InitForFrame() { | |
423 renderer_initialized_ = true; | |
Charlie Reis
2014/12/18 18:04:13
This should also have at least DCHECK(process_->Ha
kenrb
2015/01/05 21:15:30
Done.
| |
424 } | |
425 | |
422 void RenderWidgetHostImpl::Shutdown() { | 426 void RenderWidgetHostImpl::Shutdown() { |
423 RejectMouseLockOrUnlockIfNecessary(); | 427 RejectMouseLockOrUnlockIfNecessary(); |
424 | 428 |
425 if (process_->HasConnection()) { | 429 if (process_->HasConnection()) { |
426 // Tell the renderer object to close. | 430 // Tell the renderer object to close. |
427 bool rv = Send(new ViewMsg_Close(routing_id_)); | 431 bool rv = Send(new ViewMsg_Close(routing_id_)); |
428 DCHECK(rv); | 432 DCHECK(rv); |
429 } | 433 } |
430 | 434 |
431 Destroy(); | 435 Destroy(); |
(...skipping 1741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2173 } | 2177 } |
2174 #endif | 2178 #endif |
2175 | 2179 |
2176 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() { | 2180 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() { |
2177 if (view_) | 2181 if (view_) |
2178 return view_->PreferredReadbackFormat(); | 2182 return view_->PreferredReadbackFormat(); |
2179 return kN32_SkColorType; | 2183 return kN32_SkColorType; |
2180 } | 2184 } |
2181 | 2185 |
2182 } // namespace content | 2186 } // namespace content |
OLD | NEW |