Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/native/aw_contents.h" | 5 #include "android_webview/native/aw_contents.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "android_webview/browser/aw_browser_context.h" | 9 #include "android_webview/browser/aw_browser_context.h" |
| 10 #include "android_webview/browser/aw_browser_main_parts.h" | 10 #include "android_webview/browser/aw_browser_main_parts.h" |
| 11 #include "android_webview/browser/aw_resource_context.h" | 11 #include "android_webview/browser/aw_resource_context.h" |
| 12 #include "android_webview/browser/browser_view_renderer.h" | 12 #include "android_webview/browser/browser_view_renderer.h" |
| 13 #include "android_webview/browser/deferred_gpu_command_service.h" | 13 #include "android_webview/browser/deferred_gpu_command_service.h" |
| 14 #include "android_webview/browser/gpu_memory_buffer_factory_impl.h" | 14 #include "android_webview/browser/gpu_memory_buffer_factory_impl.h" |
|
boliu
2014/09/29 15:47:18
remove this
reveman
2014/09/29 18:32:09
Done.
| |
| 15 #include "android_webview/browser/hardware_renderer.h" | 15 #include "android_webview/browser/hardware_renderer.h" |
| 16 #include "android_webview/browser/net_disk_cache_remover.h" | 16 #include "android_webview/browser/net_disk_cache_remover.h" |
| 17 #include "android_webview/browser/renderer_host/aw_resource_dispatcher_host_dele gate.h" | 17 #include "android_webview/browser/renderer_host/aw_resource_dispatcher_host_dele gate.h" |
| 18 #include "android_webview/browser/scoped_app_gl_state_restore.h" | 18 #include "android_webview/browser/scoped_app_gl_state_restore.h" |
| 19 #include "android_webview/common/aw_hit_test_data.h" | 19 #include "android_webview/common/aw_hit_test_data.h" |
| 20 #include "android_webview/common/devtools_instrumentation.h" | 20 #include "android_webview/common/devtools_instrumentation.h" |
| 21 #include "android_webview/native/aw_autofill_client.h" | 21 #include "android_webview/native/aw_autofill_client.h" |
| 22 #include "android_webview/native/aw_browser_dependency_factory.h" | 22 #include "android_webview/native/aw_browser_dependency_factory.h" |
| 23 #include "android_webview/native/aw_contents_client_bridge.h" | 23 #include "android_webview/native/aw_contents_client_bridge.h" |
| 24 #include "android_webview/native/aw_contents_io_thread_client_impl.h" | 24 #include "android_webview/native/aw_contents_io_thread_client_impl.h" |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 321 } | 321 } |
| 322 | 322 |
| 323 static void SetAwDrawSWFunctionTable(JNIEnv* env, jclass, | 323 static void SetAwDrawSWFunctionTable(JNIEnv* env, jclass, |
| 324 jlong function_table) { | 324 jlong function_table) { |
| 325 JavaBrowserViewRendererHelper::SetAwDrawSWFunctionTable( | 325 JavaBrowserViewRendererHelper::SetAwDrawSWFunctionTable( |
| 326 reinterpret_cast<AwDrawSWFunctionTable*>(function_table)); | 326 reinterpret_cast<AwDrawSWFunctionTable*>(function_table)); |
| 327 } | 327 } |
| 328 | 328 |
| 329 static void SetAwDrawGLFunctionTable(JNIEnv* env, jclass, | 329 static void SetAwDrawGLFunctionTable(JNIEnv* env, jclass, |
| 330 jlong function_table) { | 330 jlong function_table) { |
| 331 GpuMemoryBufferFactoryImpl::SetAwDrawGLFunctionTable( | |
| 332 reinterpret_cast<AwDrawGLFunctionTable*>(function_table)); | |
| 333 } | 331 } |
| 334 | 332 |
| 335 static jlong GetAwDrawGLFunction(JNIEnv* env, jclass) { | 333 static jlong GetAwDrawGLFunction(JNIEnv* env, jclass) { |
| 336 return reinterpret_cast<intptr_t>(&DrawGLFunction); | 334 return reinterpret_cast<intptr_t>(&DrawGLFunction); |
| 337 } | 335 } |
| 338 | 336 |
| 339 // static | 337 // static |
| 340 jint GetNativeInstanceCount(JNIEnv* env, jclass) { | 338 jint GetNativeInstanceCount(JNIEnv* env, jclass) { |
| 341 return base::subtle::NoBarrier_Load(&g_instance_count); | 339 return base::subtle::NoBarrier_Load(&g_instance_count); |
| 342 } | 340 } |
| (...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1171 } | 1169 } |
| 1172 | 1170 |
| 1173 browser_view_renderer_.TrimMemory(level, visible); | 1171 browser_view_renderer_.TrimMemory(level, visible); |
| 1174 } | 1172 } |
| 1175 | 1173 |
| 1176 void SetShouldDownloadFavicons(JNIEnv* env, jclass jclazz) { | 1174 void SetShouldDownloadFavicons(JNIEnv* env, jclass jclazz) { |
| 1177 g_should_download_favicons = true; | 1175 g_should_download_favicons = true; |
| 1178 } | 1176 } |
| 1179 | 1177 |
| 1180 } // namespace android_webview | 1178 } // namespace android_webview |
| OLD | NEW |