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

Unified Diff: android_webview/native/aw_contents.cc

Issue 13135004: android_webview: changes to support Android GraphicBuffers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing a few cases where GraphicBuffer was used Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698