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

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

Issue 616133002: Make RenderFrame(Host) own a RenderWidget(Host). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 11 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
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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 GpuSurfaceTracker::Get()->SetSurfaceHandle( 407 GpuSurfaceTracker::Get()->SetSurfaceHandle(
408 surface_id_, GetCompositingSurface()); 408 surface_id_, GetCompositingSurface());
409 409
410 // Send the ack along with the information on placement. 410 // Send the ack along with the information on placement.
411 Send(new ViewMsg_CreatingNew_ACK(routing_id_)); 411 Send(new ViewMsg_CreatingNew_ACK(routing_id_));
412 GetProcess()->ResumeRequestsForView(routing_id_); 412 GetProcess()->ResumeRequestsForView(routing_id_);
413 413
414 WasResized(); 414 WasResized();
415 } 415 }
416 416
417 void RenderWidgetHostImpl::InitForFrame() {
418 DCHECK(process_->HasConnection());
419 renderer_initialized_ = true;
420 }
421
417 void RenderWidgetHostImpl::Shutdown() { 422 void RenderWidgetHostImpl::Shutdown() {
418 RejectMouseLockOrUnlockIfNecessary(); 423 RejectMouseLockOrUnlockIfNecessary();
419 424
420 if (process_->HasConnection()) { 425 if (process_->HasConnection()) {
421 // Tell the renderer object to close. 426 // Tell the renderer object to close.
422 bool rv = Send(new ViewMsg_Close(routing_id_)); 427 bool rv = Send(new ViewMsg_Close(routing_id_));
423 DCHECK(rv); 428 DCHECK(rv);
424 } 429 }
425 430
426 Destroy(); 431 Destroy();
(...skipping 1737 matching lines...) Expand 10 before | Expand all | Expand 10 after
2164 } 2169 }
2165 #endif 2170 #endif
2166 2171
2167 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() { 2172 SkColorType RenderWidgetHostImpl::PreferredReadbackFormat() {
2168 if (view_) 2173 if (view_)
2169 return view_->PreferredReadbackFormat(); 2174 return view_->PreferredReadbackFormat();
2170 return kN32_SkColorType; 2175 return kN32_SkColorType;
2171 } 2176 }
2172 2177
2173 } // namespace content 2178 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698