| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #ifndef ANDROID_WEBVIEW_PUBLIC_BROWSER_DRAW_SW_H_ | 5 #ifndef ANDROID_WEBVIEW_PUBLIC_BROWSER_DRAW_SW_H_ |
| 6 #define ANDROID_WEBVIEW_PUBLIC_BROWSER_DRAW_SW_H_ | 6 #define ANDROID_WEBVIEW_PUBLIC_BROWSER_DRAW_SW_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 // Called to create an Android Picture object encapsulating a native SkPicture. | 37 // Called to create an Android Picture object encapsulating a native SkPicture. |
| 38 typedef jobject (AwCreatePictureFunction)(JNIEnv* env, SkPicture* picture); | 38 typedef jobject (AwCreatePictureFunction)(JNIEnv* env, SkPicture* picture); |
| 39 | 39 |
| 40 // Method that returns the current Skia function. | 40 // Method that returns the current Skia function. |
| 41 typedef void (SkiaVersionFunction)(int* major, int* minor, int* patch); | 41 typedef void (SkiaVersionFunction)(int* major, int* minor, int* patch); |
| 42 | 42 |
| 43 // Called to verify if the Skia versions are compatible. | 43 // Called to verify if the Skia versions are compatible. |
| 44 typedef bool (AwIsSkiaVersionCompatibleFunction)(SkiaVersionFunction function); | 44 typedef bool (AwIsSkiaVersionCompatibleFunction)(SkiaVersionFunction function); |
| 45 | 45 |
| 46 static const int kAwDrawSWFunctionTableVersion = 1; |
| 47 |
| 46 // "vtable" for the functions declared in this file. An instance must be set via | 48 // "vtable" for the functions declared in this file. An instance must be set via |
| 47 // AwContents.setAwDrawSWFunctionTable | 49 // AwContents.setAwDrawSWFunctionTable |
| 48 struct AwDrawSWFunctionTable { | 50 struct AwDrawSWFunctionTable { |
| 51 int version; |
| 49 AwAccessPixelsFunction* access_pixels; | 52 AwAccessPixelsFunction* access_pixels; |
| 50 AwReleasePixelsFunction* release_pixels; | 53 AwReleasePixelsFunction* release_pixels; |
| 51 }; | 54 }; |
| 52 | 55 |
| 53 #endif // ANDROID_WEBVIEW_PUBLIC_BROWSER_DRAW_SW_H_ | 56 #endif // ANDROID_WEBVIEW_PUBLIC_BROWSER_DRAW_SW_H_ |
| OLD | NEW |