Make SkYUVAIndex publicly accessible
Change-Id: I3da7c566cdf9256e57ac7e7f30fee18b9c1a144d
Reviewed-on: https://skia-review.googlesource.com/c/159460
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/tools/DDLPromiseImageHelper.cpp b/tools/DDLPromiseImageHelper.cpp
index 51225b3..dd97f94 100644
--- a/tools/DDLPromiseImageHelper.cpp
+++ b/tools/DDLPromiseImageHelper.cpp
@@ -13,7 +13,7 @@
#include "SkCachedData.h"
#include "SkDeferredDisplayListRecorder.h"
#include "SkImage_Base.h"
-#include "SkImagePriv.h"
+#include "SkYUVAIndex.h"
#include "SkYUVSizeInfo.h"
DDLPromiseImageHelper::PromiseImageCallbackContext::~PromiseImageCallbackContext() {
@@ -151,10 +151,10 @@
}
SkYUVAIndex yuvaIndices[4] = {
- SkYUVAIndex{0, SkImageSourceChannel::kA_SkImageSourceChannel},
- SkYUVAIndex{1, SkImageSourceChannel::kA_SkImageSourceChannel},
- SkYUVAIndex{2, SkImageSourceChannel::kA_SkImageSourceChannel},
- SkYUVAIndex{-1, SkImageSourceChannel::kA_SkImageSourceChannel}
+ SkYUVAIndex{0, SkColorChannel::kA},
+ SkYUVAIndex{1, SkColorChannel::kA},
+ SkYUVAIndex{2, SkColorChannel::kA},
+ SkYUVAIndex{-1, SkColorChannel::kA}
};
int tempWidth = curImage.backendTexture(0).width();