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

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

Issue 2828913003: Replace "nested message loop" with "nested run loop" in comments. (Closed)
Patch Set: rebase Created 3 years, 7 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/delegated_frame_host_client_aura.h" 5 #include "content/browser/renderer_host/delegated_frame_host_client_aura.h"
6 6
7 #include "content/browser/renderer_host/render_widget_host_impl.h" 7 #include "content/browser/renderer_host/render_widget_host_impl.h"
8 #include "content/browser/renderer_host/render_widget_host_view_aura.h" 8 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
9 #include "content/common/view_messages.h" 9 #include "content/common/view_messages.h"
10 #include "ui/aura/window.h" 10 #include "ui/aura/window.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 gfx::Size DelegatedFrameHostClientAura::DelegatedFrameHostDesiredSizeInDIP() 44 gfx::Size DelegatedFrameHostClientAura::DelegatedFrameHostDesiredSizeInDIP()
45 const { 45 const {
46 return render_widget_host_view_->window_->bounds().size(); 46 return render_widget_host_view_->window_->bounds().size();
47 } 47 }
48 48
49 bool DelegatedFrameHostClientAura::DelegatedFrameCanCreateResizeLock() const { 49 bool DelegatedFrameHostClientAura::DelegatedFrameCanCreateResizeLock() const {
50 #if !defined(OS_CHROMEOS) 50 #if !defined(OS_CHROMEOS)
51 // On Windows and Linux, holding pointer moves will not help throttling 51 // On Windows and Linux, holding pointer moves will not help throttling
52 // resizes. 52 // resizes.
53 // TODO(piman): on Windows we need to block (nested message loop?) the 53 // TODO(piman): on Windows we need to block (nested run loop?) the
54 // WM_SIZE event. On Linux we need to throttle at the WM level using 54 // WM_SIZE event. On Linux we need to throttle at the WM level using
55 // _NET_WM_SYNC_REQUEST. 55 // _NET_WM_SYNC_REQUEST.
56 return false; 56 return false;
57 #else 57 #else
58 if (!render_widget_host_view_->host_->renderer_initialized() || 58 if (!render_widget_host_view_->host_->renderer_initialized() ||
59 render_widget_host_view_->host_->auto_resize_enabled()) { 59 render_widget_host_view_->host_->auto_resize_enabled()) {
60 return false; 60 return false;
61 } 61 }
62 return true; 62 return true;
63 #endif 63 #endif
(...skipping 25 matching lines...) Expand all
89 return window_host->compositor()->GetCompositorLock(client); 89 return window_host->compositor()->GetCompositorLock(client);
90 } 90 }
91 91
92 void DelegatedFrameHostClientAura::CompositorResizeLockEnded() { 92 void DelegatedFrameHostClientAura::CompositorResizeLockEnded() {
93 auto* window_host = render_widget_host_view_->window_->GetHost(); 93 auto* window_host = render_widget_host_view_->window_->GetHost();
94 window_host->dispatcher()->ReleasePointerMoves(); 94 window_host->dispatcher()->ReleasePointerMoves();
95 render_widget_host_view_->host_->WasResized(); 95 render_widget_host_view_->host_->WasResized();
96 } 96 }
97 97
98 } // namespace content 98 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/compositor/gpu_process_transport_factory.cc ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698