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

Side by Side Diff: android_webview/native/aw_settings.h

Issue 140753006: [Android WebView] Turn on accelerated canvas based on View.isHardwareAccelerated (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 6 years, 11 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/lib/main/aw_main_delegate.cc ('k') | android_webview/native/aw_settings.cc » ('j') | 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #ifndef ANDROID_WEBVIEW_NATIVE_AW_SETTINGS_H_ 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_SETTINGS_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_SETTINGS_H_ 6 #define ANDROID_WEBVIEW_NATIVE_AW_SETTINGS_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/jni_helper.h" 10 #include "base/android/jni_helper.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // Fixed WebPreferences for Android WebView. 44 // Fixed WebPreferences for Android WebView.
45 static void PopulateFixedPreferences(WebPreferences* web_prefs); 45 static void PopulateFixedPreferences(WebPreferences* web_prefs);
46 46
47 // WebContentsObserver overrides: 47 // WebContentsObserver overrides:
48 virtual void RenderViewCreated( 48 virtual void RenderViewCreated(
49 content::RenderViewHost* render_view_host) OVERRIDE; 49 content::RenderViewHost* render_view_host) OVERRIDE;
50 virtual void WebContentsDestroyed( 50 virtual void WebContentsDestroyed(
51 content::WebContents* web_contents) OVERRIDE; 51 content::WebContents* web_contents) OVERRIDE;
52 52
53 bool accelerated_2d_canvas_disabled_by_switch_;
54
53 JavaObjectWeakGlobalRef aw_settings_; 55 JavaObjectWeakGlobalRef aw_settings_;
54 }; 56 };
55 57
56 bool RegisterAwSettings(JNIEnv* env); 58 bool RegisterAwSettings(JNIEnv* env);
57 59
58 } // namespace android_webview 60 } // namespace android_webview
59 61
60 #endif // ANDROID_WEBVIEW_NATIVE_AW_SETTINGS_H_ 62 #endif // ANDROID_WEBVIEW_NATIVE_AW_SETTINGS_H_
OLDNEW
« no previous file with comments | « android_webview/lib/main/aw_main_delegate.cc ('k') | android_webview/native/aw_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698