aboutsummaryrefslogtreecommitdiffhomepage
path: root/gn
diff options
context:
space:
mode:
authorGravatar Stan Iliev <stani@google.com>2017-06-02 10:29:21 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-02 14:51:24 +0000
commit7e910df7f133e80293117bdd069ed25998d10f8c (patch)
tree5bfeea96c4904ba67fa551a76def78f17470ad73 /gn
parentaffa6a3da87e9ea85f1d4fe3137b5bccbbc56f92 (diff)
Implement an SkImage backed by a Android hardware buffer
Create a new SkImage public API to make an image from an Android hardware buffer. Implementation is using a SkImageGenerator derived class GrAndroidBufferImageGenerator. A new EGLImage texture is created, which is then wrapped with GrTextureProxy. Bug: skia: Change-Id: I610a4c5a58198686ce7c03e9a0adad3f9d2342e0 Reviewed-on: https://skia-review.googlesource.com/17789 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Stan Iliev <stani@google.com>
Diffstat (limited to 'gn')
-rw-r--r--gn/gn_to_bp.py2
-rw-r--r--gn/gpu.gni2
2 files changed, 4 insertions, 0 deletions
diff --git a/gn/gn_to_bp.py b/gn/gn_to_bp.py
index 92f9aadf5e..9e58b8006b 100644
--- a/gn/gn_to_bp.py
+++ b/gn/gn_to_bp.py
@@ -34,6 +34,7 @@ tool_shared_libs = [
'libdng_sdk',
'libpiex',
'libcutils',
+ 'libnativewindow',
]
# The ordering here is important: libsfntly needs to come after libskia.
@@ -132,6 +133,7 @@ cc_library {
"libvulkan",
"libz",
"libcutils",
+ "libnativewindow",
],
static_libs: [
"libarect",
diff --git a/gn/gpu.gni b/gn/gpu.gni
index 83e904b916..a0d67bc35e 100644
--- a/gn/gpu.gni
+++ b/gn/gpu.gni
@@ -50,6 +50,8 @@ skia_gpu_sources = [
"$_src/gpu/GrBackendSurface.cpp",
"$_src/gpu/GrBackendTextureImageGenerator.cpp",
"$_src/gpu/GrBackendTextureImageGenerator.h",
+ "$_src/gpu/GrAHardwareBufferImageGenerator.cpp",
+ "$_src/gpu/GrAHardwareBufferImageGenerator.h",
"$_src/gpu/GrBitmapTextureMaker.cpp",
"$_src/gpu/GrBitmapTextureMaker.h",
"$_src/gpu/GrBlend.cpp",