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

Side by Side Diff: android_webview/browser/aw_browser_main_parts.cc

Issue 16992002: Remove obsolete UseCompositorDirectDraw() method (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | « android_webview/browser/aw_browser_main_parts.h ('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 "android_webview/browser/aw_browser_main_parts.h" 5 #include "android_webview/browser/aw_browser_main_parts.h"
6 6
7 #include "android_webview/browser/aw_browser_context.h" 7 #include "android_webview/browser/aw_browser_context.h"
8 #include "android_webview/browser/aw_devtools_delegate.h" 8 #include "android_webview/browser/aw_devtools_delegate.h"
9 #include "android_webview/browser/aw_result_codes.h" 9 #include "android_webview/browser/aw_result_codes.h"
10 #include "base/android/build_info.h" 10 #include "base/android/build_info.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/path_service.h" 12 #include "base/path_service.h"
13 #include "content/public/browser/android/compositor.h" 13 #include "content/public/browser/android/compositor.h"
14 #include "content/public/browser/render_process_host.h" 14 #include "content/public/browser/render_process_host.h"
15 #include "content/public/common/content_client.h" 15 #include "content/public/common/content_client.h"
16 #include "content/public/common/result_codes.h" 16 #include "content/public/common/result_codes.h"
17 #include "net/android/network_change_notifier_factory_android.h" 17 #include "net/android/network_change_notifier_factory_android.h"
18 #include "net/base/network_change_notifier.h" 18 #include "net/base/network_change_notifier.h"
19 #include "ui/base/l10n/l10n_util_android.h" 19 #include "ui/base/l10n/l10n_util_android.h"
20 #include "ui/base/layout.h" 20 #include "ui/base/layout.h"
21 #include "ui/base/resource/resource_bundle.h" 21 #include "ui/base/resource/resource_bundle.h"
22 #include "ui/base/ui_base_paths.h" 22 #include "ui/base/ui_base_paths.h"
23 23
24 namespace android_webview { 24 namespace android_webview {
25 25
26 bool UseCompositorDirectDraw() {
27 return base::android::BuildInfo::GetInstance()->sdk_int() >= 16;
28 }
29
30 AwBrowserMainParts::AwBrowserMainParts(AwBrowserContext* browser_context) 26 AwBrowserMainParts::AwBrowserMainParts(AwBrowserContext* browser_context)
31 : browser_context_(browser_context) { 27 : browser_context_(browser_context) {
32 } 28 }
33 29
34 AwBrowserMainParts::~AwBrowserMainParts() { 30 AwBrowserMainParts::~AwBrowserMainParts() {
35 } 31 }
36 32
37 void AwBrowserMainParts::PreEarlyInitialization() { 33 void AwBrowserMainParts::PreEarlyInitialization() {
38 net::NetworkChangeNotifier::SetFactory( 34 net::NetworkChangeNotifier::SetFactory(
39 new net::NetworkChangeNotifierFactoryAndroid()); 35 new net::NetworkChangeNotifierFactoryAndroid());
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // Android specific MessageLoop. 69 // Android specific MessageLoop.
74 return true; 70 return true;
75 } 71 }
76 72
77 void AwBrowserMainParts::PostMainMessageLoopRun() { 73 void AwBrowserMainParts::PostMainMessageLoopRun() {
78 if (devtools_delegate_) 74 if (devtools_delegate_)
79 devtools_delegate_->Stop(); 75 devtools_delegate_->Stop();
80 } 76 }
81 77
82 } // namespace android_webview 78 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/aw_browser_main_parts.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698