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

Unified Diff: android_webview/public/browser/draw_sw.h

Issue 11823027: [Android WebView] Implement the capture picture API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removing any IPC DCHECKS. Created 7 years, 11 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
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | android_webview/renderer/aw_render_view_ext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/public/browser/draw_sw.h
diff --git a/android_webview/public/browser/draw_sw.h b/android_webview/public/browser/draw_sw.h
index e2e1dbfb38d663a44cc72dfcfa04fbf455de1cc6..2cdb45b3f3f2bb8195ddfdf33c87446a4ed5770b 100644
--- a/android_webview/public/browser/draw_sw.h
+++ b/android_webview/public/browser/draw_sw.h
@@ -12,6 +12,8 @@
#error "Can't mix C and C++ when using jni.h"
#endif
+class SkPicture;
+
// Holds the information required to implement the SW draw to system canvas.
struct AwPixelInfo {
int config; // In SkBitmap::Config format.
@@ -34,11 +36,22 @@ typedef AwPixelInfo* (AwAccessPixelsFunction)(JNIEnv* env, jobject canvas);
// (i.e. that returned true).
typedef void (AwReleasePixelsFunction)(AwPixelInfo* pixels);
+// Called to create an Android Picture object encapsulating a native SkPicture.
+typedef jobject (AwCreatePictureFunction)(JNIEnv* env, SkPicture* picture);
+
+// Method that returns the current Skia function.
+typedef void (SkiaVersionFunction)(int* major, int* minor, int* patch);
+
+// Called to verify if the Skia versions are compatible.
+typedef bool (AwIsSkiaVersionCompatibleFunction)(SkiaVersionFunction function);
+
// "vtable" for the functions declared in this file. An instance must be set via
// AwContents.setAwDrawSWFunctionTable
struct AwDrawSWFunctionTable {
AwAccessPixelsFunction* access_pixels;
AwReleasePixelsFunction* release_pixels;
+ AwCreatePictureFunction* create_picture;
+ AwIsSkiaVersionCompatibleFunction* is_skia_version_compatible;
};
#endif // ANDROID_WEBVIEW_PUBLIC_BROWSER_DRAW_SW_H_
« no previous file with comments | « android_webview/native/aw_contents.cc ('k') | android_webview/renderer/aw_render_view_ext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698