| Index: android_webview/native/aw_contents.cc
|
| diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
|
| index f4cc2e2b4e3ceb969645c8af7fa4fe18bb00655a..7e730ccce2e82d9334829f4cfe39be09ca621154 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.
|
|
|
| @@ -8,6 +8,7 @@
|
| #include "android_webview/browser/aw_browser_main_parts.h"
|
| #include "android_webview/browser/browser_view_renderer_impl.h"
|
| #include "android_webview/browser/net_disk_cache_remover.h"
|
| +#include "android_webview/browser/pixel_buffer_impl.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"
|
| #include "android_webview/common/aw_hit_test_data.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) {
|
| + PixelBufferImpl::SetAwDrawGLFunctionTable(
|
| + reinterpret_cast<AwDrawGLFunctionTable*>(function_table));
|
| +}
|
| +
|
| +// static
|
| jint GetAwDrawGLFunction(JNIEnv* env, jclass) {
|
| return reinterpret_cast<jint>(&DrawGLFunction);
|
| }
|
|
|