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

Unified Diff: content/browser/android/content_view_render_view.cc

Issue 11280097: Initialize compositor early on. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed DEPS Created 8 years, 1 month 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 | « chrome/browser/chrome_browser_main_android.cc ('k') | content/shell/android/shell_library_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/content_view_render_view.cc
diff --git a/content/browser/android/content_view_render_view.cc b/content/browser/android/content_view_render_view.cc
index 2e040c51c580f846009293e3b25a0bb8cf10cc45..9f780fd6ac1200cdf69b1e8c2c2108e08de6de47 100644
--- a/content/browser/android/content_view_render_view.cc
+++ b/content/browser/android/content_view_render_view.cc
@@ -89,11 +89,8 @@ void ContentViewRenderView::ScheduleComposite() {
}
void ContentViewRenderView::InitCompositor() {
- if (compositor_.get())
- return;
-
- Compositor::Initialize();
- compositor_.reset(Compositor::Create(this));
+ if (!compositor_.get())
+ compositor_.reset(Compositor::Create(this));
}
void ContentViewRenderView::Composite() {
« no previous file with comments | « chrome/browser/chrome_browser_main_android.cc ('k') | content/shell/android/shell_library_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698