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

Side by Side Diff: content/renderer/render_widget.cc

Issue 10095021: Notify WebWidget when its compositor surface is ready to use (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | content/renderer/render_widget_fullscreen_pepper.cc » ('j') | 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/renderer/render_widget.h" 5 #include "content/renderer/render_widget.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 179
180 // This is used to complete pending inits and non-pending inits. For non- 180 // This is used to complete pending inits and non-pending inits. For non-
181 // pending cases, the parent will be the same as the current parent. This 181 // pending cases, the parent will be the same as the current parent. This
182 // indicates we do not need to reparent or anything. 182 // indicates we do not need to reparent or anything.
183 void RenderWidget::CompleteInit(gfx::NativeViewId parent_hwnd) { 183 void RenderWidget::CompleteInit(gfx::NativeViewId parent_hwnd) {
184 DCHECK(routing_id_ != MSG_ROUTING_NONE); 184 DCHECK(routing_id_ != MSG_ROUTING_NONE);
185 185
186 host_window_ = parent_hwnd; 186 host_window_ = parent_hwnd;
187 host_window_set_ = true; 187 host_window_set_ = true;
188 188
189 #if WEBWIDGET_HAS_SETCOMPOSITORSURFACEREADY
190 if (webwidget_)
191 webwidget_->setCompositorSurfaceReady();
darin (slow to review) 2012/04/19 05:08:33 nit: indentation does it make sense to call compo
192 #endif
189 DoDeferredUpdate(); 193 DoDeferredUpdate();
190 194
191 Send(new ViewHostMsg_RenderViewReady(routing_id_)); 195 Send(new ViewHostMsg_RenderViewReady(routing_id_));
192 } 196 }
193 197
194 void RenderWidget::SetSwappedOut(bool is_swapped_out) { 198 void RenderWidget::SetSwappedOut(bool is_swapped_out) {
195 // We should only toggle between states. 199 // We should only toggle between states.
196 DCHECK(is_swapped_out_ != is_swapped_out); 200 DCHECK(is_swapped_out_ != is_swapped_out);
197 is_swapped_out_ = is_swapped_out; 201 is_swapped_out_ = is_swapped_out;
198 202
(...skipping 1489 matching lines...) Expand 10 before | Expand all | Expand 10 after
1688 } 1692 }
1689 } 1693 }
1690 1694
1691 bool RenderWidget::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) { 1695 bool RenderWidget::WillHandleMouseEvent(const WebKit::WebMouseEvent& event) {
1692 return false; 1696 return false;
1693 } 1697 }
1694 1698
1695 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const { 1699 bool RenderWidget::WebWidgetHandlesCompositorScheduling() const {
1696 return false; 1700 return false;
1697 } 1701 }
OLDNEW
« no previous file with comments | « no previous file | content/renderer/render_widget_fullscreen_pepper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698