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

Unified Diff: content/browser/browser_main_loop.cc

Issue 1354533002: Mac: move content::RenderWidgetResizeHelper to ui::WindowResizeHelperMac (acelerated_widget_mac) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/threading/thread_restrictions.h ('k') | content/browser/compositor/browser_compositor_view_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_main_loop.cc
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc
index dbfb590ac48055aa7a05f0715b5bdd80d1f1e53a..32ec264e555f92585a763c5c0b22dec14d8a5dcc 100644
--- a/content/browser/browser_main_loop.cc
+++ b/content/browser/browser_main_loop.cc
@@ -108,6 +108,7 @@
#include "content/browser/compositor/browser_compositor_view_mac.h"
#include "content/browser/in_process_io_surface_manager_mac.h"
#include "content/browser/theme_helper_mac.h"
+#include "ui/accelerated_widget_mac/window_resize_helper_mac.h"
#endif
#if defined(USE_OZONE)
@@ -701,6 +702,11 @@ int BrowserMainLoop::PreCreateThreads() {
}
#endif
+#if defined(OS_MACOSX) && !defined(OS_IOS)
+ // The WindowResizeHelper synchronizes IO thread tasks with the UI thread.
jam 2015/09/17 23:25:16 can you describe this some more? are we making the
tapted 2015/09/18 00:36:55 Updated the comment, now says // The WindowResi
+ ui::WindowResizeHelperMac::Get()->Init(base::ThreadTaskRunnerHandle::Get());
+#endif
+
// 1) Need to initialize in-process GpuDataManager before creating threads.
// It's unsafe to append the gpu command line switches to the global
// CommandLine::ForCurrentProcess object after threads are created.
« no previous file with comments | « base/threading/thread_restrictions.h ('k') | content/browser/compositor/browser_compositor_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698