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

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

Issue 226363004: Global GPU memory manager for android webview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Type casts and private methods in BVR. Created 6 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
« no previous file with comments | « android_webview/lib/main/aw_main_delegate.cc ('k') | android_webview/native/aw_contents.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) 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 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <list> 9 #include <list>
10 #include <string> 10 #include <string>
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 206
207 // Sets the java delegate 207 // Sets the java delegate
208 void SetAwAutofillManagerDelegate(jobject delegate); 208 void SetAwAutofillManagerDelegate(jobject delegate);
209 209
210 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up); 210 void SetJsOnlineProperty(JNIEnv* env, jobject obj, jboolean network_up);
211 void TrimMemory(JNIEnv* env, jobject obj, jint level, jboolean visible); 211 void TrimMemory(JNIEnv* env, jobject obj, jint level, jboolean visible);
212 212
213 private: 213 private:
214 void InitAutofillIfNecessary(bool enabled); 214 void InitAutofillIfNecessary(bool enabled);
215 void DidDrawGL(const DrawGLResult& result); 215 void DidDrawGL(const DrawGLResult& result);
216 void ForceFakeComposite();
217 216
218 void InitializeHardwareDrawOnRenderThread(); 217 void InitializeHardwareDrawOnRenderThread();
219 void ReleaseHardwareDrawOnRenderThread(); 218 void ReleaseHardwareDrawOnRenderThread();
220 void TrimMemoryOnRenderThread(int level, bool visible);
221 219
222 base::WeakPtrFactory<AwContents> weak_factory_on_ui_thread_; 220 base::WeakPtrFactory<AwContents> weak_factory_on_ui_thread_;
223 base::WeakPtr<AwContents> ui_thread_weak_ptr_; 221 base::WeakPtr<AwContents> ui_thread_weak_ptr_;
224 222
225 JavaObjectWeakGlobalRef java_ref_; 223 JavaObjectWeakGlobalRef java_ref_;
226 scoped_ptr<content::WebContents> web_contents_; 224 scoped_ptr<content::WebContents> web_contents_;
227 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_; 225 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_;
228 scoped_ptr<AwContentsClientBridge> contents_client_bridge_; 226 scoped_ptr<AwContentsClientBridge> contents_client_bridge_;
229 scoped_ptr<AwRenderViewHostExt> render_view_host_ext_; 227 scoped_ptr<AwRenderViewHostExt> render_view_host_ext_;
230 scoped_ptr<FindHelper> find_helper_; 228 scoped_ptr<FindHelper> find_helper_;
(...skipping 13 matching lines...) Expand all
244 std::list<OriginCallback> pending_geolocation_prompts_; 242 std::list<OriginCallback> pending_geolocation_prompts_;
245 243
246 DISALLOW_COPY_AND_ASSIGN(AwContents); 244 DISALLOW_COPY_AND_ASSIGN(AwContents);
247 }; 245 };
248 246
249 bool RegisterAwContents(JNIEnv* env); 247 bool RegisterAwContents(JNIEnv* env);
250 248
251 } // namespace android_webview 249 } // namespace android_webview
252 250
253 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 251 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW
« no previous file with comments | « android_webview/lib/main/aw_main_delegate.cc ('k') | android_webview/native/aw_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698