diff options
author | Derek Sollenberger <djsollen@google.com> | 2017-10-16 11:57:59 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-10-16 17:17:11 +0000 |
commit | 1bd76c468c2285b6484f58659641405bd4c3710a (patch) | |
tree | 1962da0b2d9a606497c8fc5ff4f6b167afd555b0 /include/core | |
parent | 823994624aa5e805e16833ecd3d748fc769a164d (diff) |
Cleanup references to AHardwareBuffer to match NDK declarations.
Change-Id: Iaf796be04a5ac04873d420960238ea06294518f7
Reviewed-on: https://skia-review.googlesource.com/60240
Reviewed-by: Stan Iliev <stani@google.com>
Commit-Queue: Derek Sollenberger <djsollen@google.com>
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkImage.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/core/SkImage.h b/include/core/SkImage.h index e89f86ce8c..7aa28eb74d 100644 --- a/include/core/SkImage.h +++ b/include/core/SkImage.h @@ -15,6 +15,10 @@ #include "SkScalar.h" #include "SkShader.h" +#if defined(SK_BUILD_FOR_ANDROID) && __ANDROID_API__ >= 26 +#include <android/hardware_buffer.h> +#endif + class SkData; class SkCanvas; class SkImageGenerator; @@ -28,8 +32,6 @@ class GrContext; class GrContextThreadSafeProxy; class GrTexture; -struct AHardwareBuffer; - /** * SkImage is an abstraction for drawing a rectagle of pixels, though the * particular type of image could be actually storing its data on the GPU, or |