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

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

Issue 608263002: gpu: Remove in-process GPU service support for CHROMIUM_image. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more build fixes Created 6 years, 2 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
OLDNEW
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"
15 #include "android_webview/browser/hardware_renderer.h" 14 #include "android_webview/browser/hardware_renderer.h"
16 #include "android_webview/browser/net_disk_cache_remover.h" 15 #include "android_webview/browser/net_disk_cache_remover.h"
17 #include "android_webview/browser/renderer_host/aw_resource_dispatcher_host_dele gate.h" 16 #include "android_webview/browser/renderer_host/aw_resource_dispatcher_host_dele gate.h"
18 #include "android_webview/browser/scoped_app_gl_state_restore.h" 17 #include "android_webview/browser/scoped_app_gl_state_restore.h"
19 #include "android_webview/common/aw_hit_test_data.h" 18 #include "android_webview/common/aw_hit_test_data.h"
20 #include "android_webview/common/devtools_instrumentation.h" 19 #include "android_webview/common/devtools_instrumentation.h"
21 #include "android_webview/native/aw_autofill_client.h" 20 #include "android_webview/native/aw_autofill_client.h"
22 #include "android_webview/native/aw_browser_dependency_factory.h" 21 #include "android_webview/native/aw_browser_dependency_factory.h"
23 #include "android_webview/native/aw_contents_client_bridge.h" 22 #include "android_webview/native/aw_contents_client_bridge.h"
24 #include "android_webview/native/aw_contents_io_thread_client_impl.h" 23 #include "android_webview/native/aw_contents_io_thread_client_impl.h"
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 } 320 }
322 321
323 static void SetAwDrawSWFunctionTable(JNIEnv* env, jclass, 322 static void SetAwDrawSWFunctionTable(JNIEnv* env, jclass,
324 jlong function_table) { 323 jlong function_table) {
325 JavaBrowserViewRendererHelper::SetAwDrawSWFunctionTable( 324 JavaBrowserViewRendererHelper::SetAwDrawSWFunctionTable(
326 reinterpret_cast<AwDrawSWFunctionTable*>(function_table)); 325 reinterpret_cast<AwDrawSWFunctionTable*>(function_table));
327 } 326 }
328 327
329 static void SetAwDrawGLFunctionTable(JNIEnv* env, jclass, 328 static void SetAwDrawGLFunctionTable(JNIEnv* env, jclass,
330 jlong function_table) { 329 jlong function_table) {
331 GpuMemoryBufferFactoryImpl::SetAwDrawGLFunctionTable(
332 reinterpret_cast<AwDrawGLFunctionTable*>(function_table));
333 } 330 }
334 331
335 static jlong GetAwDrawGLFunction(JNIEnv* env, jclass) { 332 static jlong GetAwDrawGLFunction(JNIEnv* env, jclass) {
336 return reinterpret_cast<intptr_t>(&DrawGLFunction); 333 return reinterpret_cast<intptr_t>(&DrawGLFunction);
337 } 334 }
338 335
339 // static 336 // static
340 jint GetNativeInstanceCount(JNIEnv* env, jclass) { 337 jint GetNativeInstanceCount(JNIEnv* env, jclass) {
341 return base::subtle::NoBarrier_Load(&g_instance_count); 338 return base::subtle::NoBarrier_Load(&g_instance_count);
342 } 339 }
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 } 1168 }
1172 1169
1173 browser_view_renderer_.TrimMemory(level, visible); 1170 browser_view_renderer_.TrimMemory(level, visible);
1174 } 1171 }
1175 1172
1176 void SetShouldDownloadFavicons(JNIEnv* env, jclass jclazz) { 1173 void SetShouldDownloadFavicons(JNIEnv* env, jclass jclazz) {
1177 g_should_download_favicons = true; 1174 g_should_download_favicons = true;
1178 } 1175 }
1179 1176
1180 } // namespace android_webview 1177 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/lib/main/aw_main_delegate.cc ('k') | gpu/command_buffer/service/in_process_command_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698