Fixes for experimental/go-skia

No-Try: true
Change-Id: I7799cde0a361984ed958386d2568a959a6cf12ac
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/212024
Commit-Queue: Ben Wagner aka dogben <benjaminwagner@google.com>
Commit-Queue: Eric Boren <borenet@google.com>
Reviewed-by: Eric Boren <borenet@google.com>
Auto-Submit: Ben Wagner aka dogben <benjaminwagner@google.com>
This commit is contained in:
Ben Wagner 2019-05-03 15:18:53 -04:00 committed by Skia Commit-Bot
parent ccab1cc6f4
commit c5eb81bf44
2 changed files with 4 additions and 2 deletions

View File

@ -16,7 +16,7 @@ import (
"log"
"os"
skia "skia.googlesource.com/skia/experimental/go-skia"
skia "go.skia.org/skia/experimental/go-skia"
)
func main() {

View File

@ -11,9 +11,11 @@ package skia
#cgo LDFLAGS: -Wl,-rpath,${SRCDIR}/../../out/Shared
#cgo LDFLAGS: -lskia
#cgo CFLAGS: -I../../include/c
#cgo CFLAGS: -I../..
#include "sk_canvas.h"
#include "sk_data.h"
#include "sk_image.h"
#include "sk_imageinfo.h"
#include "sk_paint.h"
#include "sk_path.h"
#include "sk_surface.h"
@ -209,5 +211,5 @@ func (i *ImageInfo) cPointer() *C.sk_imageinfo_t {
// Utility functions.
func GetDefaultColortype() ColorType {
return ColorType(C.sk_colortype_get_default_8888())
return ColorType(C.RGBA_8888_SK_COLORTYPE)
}