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

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

Issue 2246613002: Fix jank during mac resize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fixhangoutsblank
Patch Set: Fix flash video Created 4 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
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | 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 8
9 #include <set> 9 #include <set>
10 #include <tuple> 10 #include <tuple>
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 } 434 }
435 435
436 Destroy(also_delete); 436 Destroy(also_delete);
437 } 437 }
438 438
439 bool RenderWidgetHostImpl::IsLoading() const { 439 bool RenderWidgetHostImpl::IsLoading() const {
440 return is_loading_; 440 return is_loading_;
441 } 441 }
442 442
443 bool RenderWidgetHostImpl::OnMessageReceived(const IPC::Message &msg) { 443 bool RenderWidgetHostImpl::OnMessageReceived(const IPC::Message &msg) {
444 // Only process messages if the RenderWidget is alive. 444 // Only process most messages if the RenderWidget is alive.
445 if (!renderer_initialized()) 445 if (!renderer_initialized()) {
446 return false; 446 // SetNeedsBeginFrame messages are only sent by the renderer once and so
447 // should never be dropped.
448 bool handled = true;
449 IPC_BEGIN_MESSAGE_MAP(RenderWidgetHostImpl, msg)
450 IPC_MESSAGE_HANDLER(ViewHostMsg_SetNeedsBeginFrames,
451 OnSetNeedsBeginFrames)
452 IPC_MESSAGE_UNHANDLED(handled = false)
453 IPC_END_MESSAGE_MAP()
454 return handled;
455 }
447 456
448 if (owner_delegate_ && owner_delegate_->OnMessageReceived(msg)) 457 if (owner_delegate_ && owner_delegate_->OnMessageReceived(msg))
449 return true; 458 return true;
450 459
451 bool handled = true; 460 bool handled = true;
452 IPC_BEGIN_MESSAGE_MAP(RenderWidgetHostImpl, msg) 461 IPC_BEGIN_MESSAGE_MAP(RenderWidgetHostImpl, msg)
453 IPC_MESSAGE_HANDLER(FrameHostMsg_RenderProcessGone, OnRenderProcessGone) 462 IPC_MESSAGE_HANDLER(FrameHostMsg_RenderProcessGone, OnRenderProcessGone)
454 IPC_MESSAGE_HANDLER(FrameHostMsg_HittestData, OnHittestData) 463 IPC_MESSAGE_HANDLER(FrameHostMsg_HittestData, OnHittestData)
455 IPC_MESSAGE_HANDLER(InputHostMsg_QueueSyntheticGesture, 464 IPC_MESSAGE_HANDLER(InputHostMsg_QueueSyntheticGesture,
456 OnQueueSyntheticGesture) 465 OnQueueSyntheticGesture)
(...skipping 1732 matching lines...) Expand 10 before | Expand all | Expand 10 after
2189 return delegate_ ? delegate_->GetRootBrowserAccessibilityManager() : NULL; 2198 return delegate_ ? delegate_->GetRootBrowserAccessibilityManager() : NULL;
2190 } 2199 }
2191 2200
2192 BrowserAccessibilityManager* 2201 BrowserAccessibilityManager*
2193 RenderWidgetHostImpl::GetOrCreateRootBrowserAccessibilityManager() { 2202 RenderWidgetHostImpl::GetOrCreateRootBrowserAccessibilityManager() {
2194 return delegate_ ? 2203 return delegate_ ?
2195 delegate_->GetOrCreateRootBrowserAccessibilityManager() : NULL; 2204 delegate_->GetOrCreateRootBrowserAccessibilityManager() : NULL;
2196 } 2205 }
2197 2206
2198 } // namespace content 2207 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698