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

Side by Side Diff: android_webview/public/browser/draw_sw.h

Issue 433603005: aw: Add versions to public function tables (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: roll aosp Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « android_webview/public/browser/draw_gl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « android_webview/public/browser/draw_gl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698