| Index: android_webview/native/aw_contents.cc
|
| diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
|
| index 61c934585cef14e31363d01df2166b5087703274..6d2db78021772ce6a6f898f1bcf63ba0d4636ff6 100644
|
| --- a/android_webview/native/aw_contents.cc
|
| +++ b/android_webview/native/aw_contents.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Copyright 2012 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -7,6 +7,7 @@
|
| #include "android_webview/browser/aw_browser_context.h"
|
| #include "android_webview/browser/aw_browser_main_parts.h"
|
| #include "android_webview/browser/browser_view_renderer_impl.h"
|
| +#include "android_webview/browser/gpu_memory_buffer_impl.h"
|
| #include "android_webview/browser/net_disk_cache_remover.h"
|
| #include "android_webview/browser/renderer_host/aw_render_view_host_ext.h"
|
| #include "android_webview/browser/renderer_host/aw_resource_dispatcher_host_delegate.h"
|
| @@ -42,6 +43,7 @@
|
| #include "ui/gfx/android/java_bitmap.h"
|
|
|
| struct AwDrawSWFunctionTable;
|
| +struct AwDrawGLFunctionTable;
|
|
|
| using base::android::AttachCurrentThread;
|
| using base::android::ConvertJavaStringToUTF16;
|
| @@ -181,6 +183,12 @@ void SetAwDrawSWFunctionTable(JNIEnv* env, jclass, jint function_table) {
|
| }
|
|
|
| // static
|
| +void SetAwDrawGLFunctionTable(JNIEnv* env, jclass, jint function_table) {
|
| + GpuMemoryBufferImpl::SetAwDrawGLFunctionTable(
|
| + reinterpret_cast<AwDrawGLFunctionTable*>(function_table));
|
| +}
|
| +
|
| +// static
|
| jint GetAwDrawGLFunction(JNIEnv* env, jclass) {
|
| return reinterpret_cast<jint>(&DrawGLFunction);
|
| }
|
|
|