Fix transitive dependencies on SkImageEncoder
In https://skia-review.googlesource.com/c/skia/+/512416, we would like to decouple SkImage and SkImageEncoder. This CL was created by searching for use of these objects: - SkEncodedImageFormat - SkStream - SkData - SkBitmap - SkPixmap and making sure those files followed the Include What You Use (IWYU) guidelines. Signed-off-by: Kevin Lubick <kjlubick@google.com> Change-Id: I8edbcd1c9a526b8084d7e2c023895d1ad2f8c9b1
This commit is contained in:
@@ -22,8 +22,11 @@
|
||||
#include <GLES2/gl2ext.h>
|
||||
#include <GLES3/gl3.h>
|
||||
#include <GrDirectContext.h>
|
||||
#include <SkBitmap.h>
|
||||
#include <SkCanvas.h>
|
||||
#include <SkImage.h>
|
||||
#include <SkImageInfo.h>
|
||||
#include <SkRefCnt.h>
|
||||
#include <gui/TraceUtils.h>
|
||||
#include <utils/GLUtils.h>
|
||||
#include <utils/NdkUtils.h>
|
||||
|
||||
@@ -17,6 +17,9 @@
|
||||
#pragma once
|
||||
|
||||
#include <hwui/Bitmap.h>
|
||||
#include <SkRefCnt.h>
|
||||
|
||||
class SkBitmap;
|
||||
|
||||
namespace android::uirenderer {
|
||||
|
||||
|
||||
@@ -26,6 +26,18 @@
|
||||
#include "pipeline/skia/LayerDrawable.h"
|
||||
#include "renderthread/EglManager.h"
|
||||
#include "renderthread/VulkanManager.h"
|
||||
#include <SkBitmap.h>
|
||||
#include <SkBlendMode.h>
|
||||
#include <SkCanvas.h>
|
||||
#include <SkColorSpace.h>
|
||||
#include <SkImage.h>
|
||||
#include <SkImageInfo.h>
|
||||
#include <SkMatrix.h>
|
||||
#include <SkPaint.h>
|
||||
#include <SkRect.h>
|
||||
#include <SkRefCnt.h>
|
||||
#include <SkSamplingOptions.h>
|
||||
#include <SkSurface.h>
|
||||
#include "utils/Color.h"
|
||||
#include "utils/MathUtils.h"
|
||||
#include "utils/NdkUtils.h"
|
||||
|
||||
@@ -20,7 +20,11 @@
|
||||
#include "Rect.h"
|
||||
#include "renderthread/RenderThread.h"
|
||||
|
||||
#include <SkBitmap.h>
|
||||
#include <SkRefCnt.h>
|
||||
|
||||
class SkBitmap;
|
||||
class SkImage;
|
||||
struct SkRect;
|
||||
|
||||
namespace android {
|
||||
class Bitmap;
|
||||
|
||||
@@ -21,9 +21,10 @@
|
||||
#include <utils/Log.h>
|
||||
|
||||
#include "PathParser.h"
|
||||
#include "SkColorFilter.h"
|
||||
#include "SkImage.h"
|
||||
#include "SkImageInfo.h"
|
||||
#include "SkShader.h"
|
||||
#include "SkSamplingOptions.h"
|
||||
#include "SkScalar.h"
|
||||
#include "hwui/Paint.h"
|
||||
|
||||
#ifdef __ANDROID__
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <SkPath.h>
|
||||
#include <SkPathMeasure.h>
|
||||
#include <SkRect.h>
|
||||
#include <SkRefCnt.h>
|
||||
#include <SkShader.h>
|
||||
#include <SkSurface.h>
|
||||
|
||||
|
||||
@@ -24,6 +24,11 @@
|
||||
|
||||
#include <GraphicsJNI.h>
|
||||
#include <hwui/Bitmap.h>
|
||||
#include <SkBitmap.h>
|
||||
#include <SkColorSpace.h>
|
||||
#include <SkImageInfo.h>
|
||||
#include <SkRefCnt.h>
|
||||
#include <SkStream.h>
|
||||
#include <utils/Color.h>
|
||||
|
||||
using namespace android;
|
||||
|
||||
@@ -35,9 +35,15 @@
|
||||
#endif
|
||||
|
||||
#include <SkCanvas.h>
|
||||
#include <SkImagePriv.h>
|
||||
#include <SkWebpEncoder.h>
|
||||
#include <SkColor.h>
|
||||
#include <SkEncodedImageFormat.h>
|
||||
#include <SkHighContrastFilter.h>
|
||||
#include <SkImageEncoder.h>
|
||||
#include <SkImagePriv.h>
|
||||
#include <SkPixmap.h>
|
||||
#include <SkRect.h>
|
||||
#include <SkStream.h>
|
||||
#include <SkWebpEncoder.h>
|
||||
#include <limits>
|
||||
|
||||
namespace android {
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
#include <SkColorFilter.h>
|
||||
#include <SkColorSpace.h>
|
||||
#include <SkImage.h>
|
||||
#include <SkImage.h>
|
||||
#include <SkImageInfo.h>
|
||||
#include <SkPixelRef.h>
|
||||
#include <SkRefCnt.h>
|
||||
#include <cutils/compiler.h>
|
||||
#ifdef __ANDROID__ // Layoutlib does not support hardware acceleration
|
||||
#include <android/hardware_buffer.h>
|
||||
|
||||
@@ -16,10 +16,13 @@
|
||||
|
||||
#include "MinikinSkia.h"
|
||||
|
||||
#include <SkFontDescriptor.h>
|
||||
#include <SkFont.h>
|
||||
#include <SkFontDescriptor.h>
|
||||
#include <SkFontMetrics.h>
|
||||
#include <SkFontMgr.h>
|
||||
#include <SkRect.h>
|
||||
#include <SkScalar.h>
|
||||
#include <SkStream.h>
|
||||
#include <SkTypeface.h>
|
||||
#include <log/log.h>
|
||||
|
||||
|
||||
@@ -21,8 +21,11 @@
|
||||
#include <SkAndroidCodec.h>
|
||||
#include <SkAnimatedImage.h>
|
||||
#include <SkColorFilter.h>
|
||||
#include <SkEncodedImageFormat.h>
|
||||
#include <SkPicture.h>
|
||||
#include <SkPictureRecorder.h>
|
||||
#include <SkRect.h>
|
||||
#include <SkRefCnt.h>
|
||||
#include <hwui/AnimatedImageDrawable.h>
|
||||
#include <hwui/ImageDecoder.h>
|
||||
#include <hwui/Canvas.h>
|
||||
|
||||
@@ -2,17 +2,25 @@
|
||||
#define LOG_TAG "Bitmap"
|
||||
#include "Bitmap.h"
|
||||
|
||||
#include "GraphicsJNI.h"
|
||||
#include "SkBitmap.h"
|
||||
#include "SkBlendMode.h"
|
||||
#include "SkCanvas.h"
|
||||
#include "SkColor.h"
|
||||
#include "SkColorSpace.h"
|
||||
#include "SkPixelRef.h"
|
||||
#include "SkData.h"
|
||||
#include "SkImageEncoder.h"
|
||||
#include "SkImageInfo.h"
|
||||
#include "GraphicsJNI.h"
|
||||
#include "SkPaint.h"
|
||||
#include "SkPixelRef.h"
|
||||
#include "SkPixmap.h"
|
||||
#include "SkPoint.h"
|
||||
#include "SkRefCnt.h"
|
||||
#include "SkStream.h"
|
||||
#include "SkTypes.h"
|
||||
#include "SkWebpEncoder.h"
|
||||
|
||||
|
||||
#include "android_nio_utils.h"
|
||||
#include "CreateJavaOutputStreamAdaptor.h"
|
||||
#include <hwui/Paint.h>
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
#include <jni.h>
|
||||
#include <android/bitmap.h>
|
||||
|
||||
class SkBitmap;
|
||||
struct SkImageInfo;
|
||||
|
||||
namespace android {
|
||||
|
||||
@@ -8,9 +8,19 @@
|
||||
#include "MimeType.h"
|
||||
#include "NinePatchPeeker.h"
|
||||
#include "SkAndroidCodec.h"
|
||||
#include "SkBitmap.h"
|
||||
#include "SkBlendMode.h"
|
||||
#include "SkCanvas.h"
|
||||
#include "SkColorSpace.h"
|
||||
#include "SkEncodedImageFormat.h"
|
||||
#include "SkImageInfo.h"
|
||||
#include "SkMath.h"
|
||||
#include "SkPaint.h"
|
||||
#include "SkPixelRef.h"
|
||||
#include "SkRect.h"
|
||||
#include "SkRefCnt.h"
|
||||
#include "SkSamplingOptions.h"
|
||||
#include "SkSize.h"
|
||||
#include "SkStream.h"
|
||||
#include "SkString.h"
|
||||
#include "SkUtils.h"
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include "GraphicsJNI.h"
|
||||
#include "Utils.h"
|
||||
|
||||
#include <SkData.h>
|
||||
#include <SkStream.h>
|
||||
|
||||
using namespace android;
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "SkData.h"
|
||||
#include "SkFontMgr.h"
|
||||
#include "SkRefCnt.h"
|
||||
#include "SkStream.h"
|
||||
#include "SkTypeface.h"
|
||||
#include "Utils.h"
|
||||
#include "fonts/Font.h"
|
||||
|
||||
@@ -7,9 +7,11 @@
|
||||
|
||||
|
||||
#include "Movie.h"
|
||||
#include "SkBitmap.h"
|
||||
#include "SkColor.h"
|
||||
#include "SkColorPriv.h"
|
||||
#include "SkStream.h"
|
||||
#include "SkTypes.h"
|
||||
|
||||
#include "gif_lib.h"
|
||||
|
||||
|
||||
@@ -8,10 +8,18 @@
|
||||
#include <nativehelper/JNIHelp.h>
|
||||
#include "GraphicsJNI.h"
|
||||
|
||||
#include "include/private/SkTemplates.h" // SkTAddOffset
|
||||
#include "SkBitmap.h"
|
||||
#include "SkCanvas.h"
|
||||
#include "SkColorSpace.h"
|
||||
#include "SkFontMetrics.h"
|
||||
#include "SkImageInfo.h"
|
||||
#include "SkMath.h"
|
||||
#include "SkPixelRef.h"
|
||||
#include "SkPoint.h"
|
||||
#include "SkRect.h"
|
||||
#include "SkRegion.h"
|
||||
#include "SkTypes.h"
|
||||
#include <cutils/ashmem.h>
|
||||
#include <hwui/Canvas.h>
|
||||
|
||||
|
||||
@@ -29,8 +29,12 @@
|
||||
|
||||
#include <FrontBufferedStream.h>
|
||||
#include <SkAndroidCodec.h>
|
||||
#include <SkEncodedImageFormat.h>
|
||||
#include <SkBitmap.h>
|
||||
#include <SkColorSpace.h>
|
||||
#include <SkImageInfo.h>
|
||||
#include <SkRect.h>
|
||||
#include <SkStream.h>
|
||||
#include <SkString.h>
|
||||
|
||||
#include <androidfw/Asset.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
#include "SkBitmap.h"
|
||||
#include "SkCanvas.h"
|
||||
#include "SkRefCnt.h"
|
||||
#include "SkTypes.h"
|
||||
|
||||
class SkStreamRewindable;
|
||||
|
||||
|
||||
@@ -5,11 +5,12 @@
|
||||
* found in the LICENSE file.
|
||||
*/
|
||||
#include "Movie.h"
|
||||
#include "SkCanvas.h"
|
||||
#include "SkPaint.h"
|
||||
#include "SkBitmap.h"
|
||||
#include "SkStream.h"
|
||||
#include "SkTypes.h"
|
||||
|
||||
// We should never see this in normal operation since our time values are
|
||||
// 0-based. So we use it as a sentinal.
|
||||
// 0-based. So we use it as a sentinel.
|
||||
#define UNINITIALIZED_MSEC ((SkMSec)-1)
|
||||
|
||||
Movie::Movie()
|
||||
@@ -81,8 +82,6 @@ const SkBitmap& Movie::bitmap()
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "SkStream.h"
|
||||
|
||||
Movie* Movie::DecodeMemory(const void* data, size_t length) {
|
||||
SkMemoryStream stream(data, length, false);
|
||||
return Movie::DecodeStream(&stream);
|
||||
|
||||
@@ -24,8 +24,10 @@
|
||||
#include <hwui/Paint.h>
|
||||
#include <utils/Log.h>
|
||||
|
||||
#include "SkBitmap.h"
|
||||
#include "SkCanvas.h"
|
||||
#include "SkLatticeIter.h"
|
||||
#include "SkRect.h"
|
||||
#include "SkRegion.h"
|
||||
#include "GraphicsJNI.h"
|
||||
#include "NinePatchPeeker.h"
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
#include "NinePatchPeeker.h"
|
||||
|
||||
#include <SkBitmap.h>
|
||||
#include <SkScalar.h>
|
||||
#include <cutils/compiler.h>
|
||||
|
||||
using namespace android;
|
||||
|
||||
@@ -2,11 +2,21 @@
|
||||
#define LOG_TAG "ShaderJNI"
|
||||
|
||||
#include "GraphicsJNI.h"
|
||||
#include "SkBitmap.h"
|
||||
#include "SkBlendMode.h"
|
||||
#include "SkColor.h"
|
||||
#include "SkColorFilter.h"
|
||||
#include "SkGradientShader.h"
|
||||
#include "SkImage.h"
|
||||
#include "SkImagePriv.h"
|
||||
#include "SkMatrix.h"
|
||||
#include "SkPoint.h"
|
||||
#include "SkRefCnt.h"
|
||||
#include "SkSamplingOptions.h"
|
||||
#include "SkScalar.h"
|
||||
#include "SkShader.h"
|
||||
#include "SkBlendMode.h"
|
||||
#include "SkString.h"
|
||||
#include "SkTileMode.h"
|
||||
#include "include/effects/SkRuntimeEffect.h"
|
||||
|
||||
#include <vector>
|
||||
@@ -16,7 +26,7 @@ using namespace android::uirenderer;
|
||||
/**
|
||||
* By default Skia gradients will interpolate their colors in unpremul space
|
||||
* and then premultiply each of the results. We must set this flag to preserve
|
||||
* backwards compatiblity by premultiplying the colors of the gradient first,
|
||||
* backwards compatibility by premultiplying the colors of the gradient first,
|
||||
* and then interpolating between them.
|
||||
*/
|
||||
static const uint32_t sGradientShaderFlags = SkGradientShader::kInterpolateColorsInPremul_Flag;
|
||||
|
||||
@@ -17,8 +17,11 @@
|
||||
#ifndef _ANDROID_GRAPHICS_UTILS_H_
|
||||
#define _ANDROID_GRAPHICS_UTILS_H_
|
||||
|
||||
#include "SkRefCnt.h"
|
||||
#include "SkStream.h"
|
||||
|
||||
class SkData;
|
||||
|
||||
#include <jni.h>
|
||||
#include <androidfw/Asset.h>
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#include "CreateJavaOutputStreamAdaptor.h"
|
||||
#include "SkJPEGWriteUtility.h"
|
||||
#include "SkStream.h"
|
||||
#include "SkTypes.h"
|
||||
#include "YuvToJpegEncoder.h"
|
||||
#include <ui/PixelFormat.h>
|
||||
#include <hardware/hardware.h>
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
#ifndef _ANDROID_GRAPHICS_YUV_TO_JPEG_ENCODER_H_
|
||||
#define _ANDROID_GRAPHICS_YUV_TO_JPEG_ENCODER_H_
|
||||
|
||||
#include "SkTypes.h"
|
||||
#include "SkStream.h"
|
||||
extern "C" {
|
||||
#include "jpeglib.h"
|
||||
#include "jerror.h"
|
||||
}
|
||||
|
||||
class SkWStream;
|
||||
|
||||
class YuvToJpegEncoder {
|
||||
public:
|
||||
/** Create an encoder based on the YUV format.
|
||||
|
||||
@@ -32,10 +32,22 @@
|
||||
|
||||
#include "FontUtils.h"
|
||||
#include "Bitmap.h"
|
||||
#include "SkBitmap.h"
|
||||
#include "SkBlendMode.h"
|
||||
#include "SkClipOp.h"
|
||||
#include "SkColor.h"
|
||||
#include "SkColorSpace.h"
|
||||
#include "SkGraphics.h"
|
||||
#include "SkImageInfo.h"
|
||||
#include "SkMatrix.h"
|
||||
#include "SkPath.h"
|
||||
#include "SkPoint.h"
|
||||
#include "SkRect.h"
|
||||
#include "SkRefCnt.h"
|
||||
#include "SkRegion.h"
|
||||
#include "SkVertices.h"
|
||||
#include "SkRRect.h"
|
||||
#include "SkScalar.h"
|
||||
#include "SkVertices.h"
|
||||
|
||||
namespace minikin {
|
||||
class MeasuredText;
|
||||
|
||||
@@ -23,8 +23,16 @@
|
||||
#include <Picture.h>
|
||||
#include <Properties.h>
|
||||
#include <RootRenderNode.h>
|
||||
#include <SkBitmap.h>
|
||||
#include <SkColorSpace.h>
|
||||
#include <SkData.h>
|
||||
#include <SkImage.h>
|
||||
#include <SkImagePriv.h>
|
||||
#include <SkPicture.h>
|
||||
#include <SkPixmap.h>
|
||||
#include <SkSerialProcs.h>
|
||||
#include <SkStream.h>
|
||||
#include <SkTypeface.h>
|
||||
#include <dlfcn.h>
|
||||
#include <gui/TraceUtils.h>
|
||||
#include <inttypes.h>
|
||||
@@ -444,7 +452,7 @@ struct PictureCaptureState {
|
||||
};
|
||||
|
||||
// TODO: This & Multi-SKP & Single-SKP should all be de-duped into
|
||||
// a single "make a SkPicture serailizable-safe" utility somewhere
|
||||
// a single "make a SkPicture serializable-safe" utility somewhere
|
||||
class PictureWrapper : public Picture {
|
||||
public:
|
||||
PictureWrapper(sk_sp<SkPicture>&& src, const std::shared_ptr<PictureCaptureState>& state)
|
||||
|
||||
@@ -22,7 +22,10 @@
|
||||
#include "SkFont.h"
|
||||
#include "SkFontMetrics.h"
|
||||
#include "SkFontMgr.h"
|
||||
#include "SkRect.h"
|
||||
#include "SkRefCnt.h"
|
||||
#include "SkScalar.h"
|
||||
#include "SkStream.h"
|
||||
#include "SkTypeface.h"
|
||||
#include "GraphicsJNI.h"
|
||||
#include <nativehelper/ScopedUtfChars.h>
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
#include "ShaderCache.h"
|
||||
#include <GrDirectContext.h>
|
||||
#include <SkData.h>
|
||||
#include <gui/TraceUtils.h>
|
||||
#include <log/log.h>
|
||||
#include <openssl/sha.h>
|
||||
|
||||
@@ -17,12 +17,15 @@
|
||||
#pragma once
|
||||
|
||||
#include <GrContextOptions.h>
|
||||
#include <SkRefCnt.h>
|
||||
#include <cutils/compiler.h>
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
class SkData;
|
||||
|
||||
namespace android {
|
||||
|
||||
class BlobCache;
|
||||
@@ -45,7 +48,7 @@ public:
|
||||
* and puts the ShaderCache into an initialized state, such that it is
|
||||
* able to insert and retrieve entries from the cache. If identity is
|
||||
* non-null and validation fails, the cache is initialized but contains
|
||||
* no data. If size is less than zero, the cache is initilaized but
|
||||
* no data. If size is less than zero, the cache is initialized but
|
||||
* contains no data.
|
||||
*
|
||||
* This should be called when HWUI pipeline is initialized. When not in
|
||||
|
||||
@@ -16,15 +16,25 @@
|
||||
|
||||
#include "SkiaPipeline.h"
|
||||
|
||||
#include <SkCanvas.h>
|
||||
#include <SkColor.h>
|
||||
#include <SkColorSpace.h>
|
||||
#include <SkData.h>
|
||||
#include <SkImage.h>
|
||||
#include <SkImageEncoder.h>
|
||||
#include <SkImageInfo.h>
|
||||
#include <SkImagePriv.h>
|
||||
#include <SkMatrix.h>
|
||||
#include <SkMultiPictureDocument.h>
|
||||
#include <SkOverdrawCanvas.h>
|
||||
#include <SkOverdrawColorFilter.h>
|
||||
#include <SkPicture.h>
|
||||
#include <SkPictureRecorder.h>
|
||||
#include <SkRect.h>
|
||||
#include <SkRefCnt.h>
|
||||
#include <SkSerialProcs.h>
|
||||
#include <SkStream.h>
|
||||
#include <SkString.h>
|
||||
#include <SkTypeface.h>
|
||||
#include <android-base/properties.h>
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "renderthread/CanvasContext.h"
|
||||
#include "renderthread/IRenderPipeline.h"
|
||||
|
||||
class SkFILEWStream;
|
||||
class SkPictureRecorder;
|
||||
struct SkSharingSerialContext;
|
||||
|
||||
|
||||
@@ -16,11 +16,20 @@
|
||||
|
||||
#include "SkiaRecordingCanvas.h"
|
||||
#include "hwui/Paint.h"
|
||||
#include <include/private/SkTemplates.h> // SkAutoSTMalloc
|
||||
#include <SkBlendMode.h>
|
||||
#include <SkData.h>
|
||||
#include <SkDrawable.h>
|
||||
#include <SkImage.h>
|
||||
#include <SkImagePriv.h>
|
||||
#include <SkMatrix.h>
|
||||
#include <SkPaint.h>
|
||||
#include <SkRRect.h>
|
||||
#include <SkPoint.h>
|
||||
#include <SkRect.h>
|
||||
#include <SkRefCnt.h>
|
||||
#include <SkRRect.h>
|
||||
#include <SkSamplingOptions.h>
|
||||
#include <SkTypes.h>
|
||||
#include "CanvasTransform.h"
|
||||
#ifdef __ANDROID__ // Layoutlib does not support Layers
|
||||
#include "Layer.h"
|
||||
|
||||
@@ -22,6 +22,11 @@
|
||||
|
||||
#include "renderstate/RenderState.h"
|
||||
|
||||
#include "SkRefCnt.h"
|
||||
|
||||
class SkBitmap;
|
||||
struct SkRect;
|
||||
|
||||
namespace android {
|
||||
namespace uirenderer {
|
||||
namespace skiapipeline {
|
||||
|
||||
@@ -19,7 +19,9 @@
|
||||
#include "HolePunch.h"
|
||||
#include "SkData.h"
|
||||
#include "SkDrawable.h"
|
||||
#include "SkMatrix.h"
|
||||
#include "SkPaint.h"
|
||||
#include "SkRect.h"
|
||||
#include "SkRRect.h"
|
||||
|
||||
using namespace android::uirenderer::skiapipeline;
|
||||
|
||||
@@ -19,6 +19,13 @@
|
||||
#include "SkPaintFilterCanvas.h"
|
||||
#include <effects/StretchEffect.h>
|
||||
|
||||
class SkData;
|
||||
class SkDrawable;
|
||||
class SkMatrix;
|
||||
class SkPaint;
|
||||
enum class SkBlendMode;
|
||||
struct SkRect;
|
||||
|
||||
class TransformCanvas : public SkPaintFilterCanvas {
|
||||
public:
|
||||
TransformCanvas(SkCanvas* target, SkBlendMode blendmode) :
|
||||
|
||||
@@ -29,6 +29,10 @@
|
||||
#include "utils/Macros.h"
|
||||
#include "utils/TimeUtils.h"
|
||||
|
||||
#include <SkBitmap.h>
|
||||
#include <SkImage.h>
|
||||
#include <SkPicture.h>
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
namespace android {
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#ifndef RENDERPROXY_H_
|
||||
#define RENDERPROXY_H_
|
||||
|
||||
#include <SkBitmap.h>
|
||||
#include <SkRefCnt.h>
|
||||
#include <android/native_window.h>
|
||||
#include <cutils/compiler.h>
|
||||
#include <android/surface_control.h>
|
||||
@@ -30,6 +30,10 @@
|
||||
#include "SwapBehavior.h"
|
||||
#include "hwui/Bitmap.h"
|
||||
|
||||
class SkBitmap;
|
||||
class SkPicture;
|
||||
class SkImage;
|
||||
|
||||
namespace android {
|
||||
class GraphicBuffer;
|
||||
class Surface;
|
||||
|
||||
@@ -26,7 +26,13 @@
|
||||
#include <renderthread/VulkanManager.h>
|
||||
#include <utils/Unicode.h>
|
||||
|
||||
#include "SkCanvas.h"
|
||||
#include "SkColorData.h"
|
||||
#include "SkMatrix.h"
|
||||
#include "SkPath.h"
|
||||
#include "SkPixmap.h"
|
||||
#include "SkRect.h"
|
||||
#include "SkSurface.h"
|
||||
#include "SkUnPreMultiply.h"
|
||||
|
||||
namespace android {
|
||||
|
||||
@@ -27,10 +27,20 @@
|
||||
#include <renderstate/RenderState.h>
|
||||
#include <renderthread/RenderThread.h>
|
||||
|
||||
#include <SkBitmap.h>
|
||||
#include <SkColor.h>
|
||||
#include <SkImageInfo.h>
|
||||
#include <SkRefCnt.h>
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include <memory>
|
||||
#include <unordered_map>
|
||||
|
||||
class SkCanvas;
|
||||
class SkMatrix;
|
||||
class SkPath;
|
||||
struct SkRect;
|
||||
|
||||
namespace android {
|
||||
namespace uirenderer {
|
||||
|
||||
|
||||
@@ -14,7 +14,17 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <SkImagePriv.h>
|
||||
#include <SkBitmap.h>
|
||||
#include <SkBlendMode.h>
|
||||
#include <SkCanvas.h>
|
||||
#include <SkImage.h>
|
||||
#include <SkImageInfo.h>
|
||||
#include <SkPaint.h>
|
||||
#include <SkRect.h>
|
||||
#include <SkRefCnt.h>
|
||||
#include <SkSamplingOptions.h>
|
||||
#include <SkShader.h>
|
||||
#include <SkTileMode.h>
|
||||
#include "hwui/Paint.h"
|
||||
#include "TestSceneBase.h"
|
||||
#include "tests/common/BitmapAllocationTestUtils.h"
|
||||
|
||||
@@ -18,6 +18,12 @@
|
||||
#include "tests/common/BitmapAllocationTestUtils.h"
|
||||
#include "utils/Color.h"
|
||||
|
||||
#include <SkBitmap.h>
|
||||
#include <SkBlendMode.h>
|
||||
#include <SkCanvas.h>
|
||||
#include <SkPaint.h>
|
||||
#include <SkRefCnt.h>
|
||||
|
||||
class HwBitmap565;
|
||||
|
||||
static TestScene::Registrar _HwBitmap565(TestScene::Info{
|
||||
|
||||
@@ -17,7 +17,16 @@
|
||||
#include "TestSceneBase.h"
|
||||
#include "tests/common/TestListViewSceneBase.h"
|
||||
#include "hwui/Paint.h"
|
||||
#include <SkBitmap.h>
|
||||
#include <SkCanvas.h>
|
||||
#include <SkColor.h>
|
||||
#include <SkFont.h>
|
||||
#include <SkFontTypes.h>
|
||||
#include <SkPaint.h>
|
||||
#include <SkPoint.h>
|
||||
#include <SkRect.h>
|
||||
#include <SkRefCnt.h>
|
||||
#include <SkScalar.h>
|
||||
#include <cstdio>
|
||||
|
||||
class ListViewAnimation;
|
||||
@@ -48,7 +57,7 @@ class ListViewAnimation : public TestListViewSceneBase {
|
||||
128 * 3;
|
||||
paint.setColor(bgDark ? Color::White : Color::Grey_700);
|
||||
|
||||
SkFont font;
|
||||
SkFont font;
|
||||
font.setSize(size / 2);
|
||||
char charToShow = 'A' + (rand() % 26);
|
||||
const SkPoint pos = {SkIntToScalar(size / 2),
|
||||
|
||||
@@ -19,6 +19,10 @@
|
||||
#include "utils/Color.h"
|
||||
#include "hwui/Paint.h"
|
||||
|
||||
#include <SkBitmap.h>
|
||||
#include <SkBlendMode.h>
|
||||
#include <SkFont.h>
|
||||
|
||||
class MagnifierAnimation;
|
||||
|
||||
static TestScene::Registrar _Magnifier(TestScene::Info{
|
||||
|
||||
@@ -16,6 +16,12 @@
|
||||
|
||||
#include "TestSceneBase.h"
|
||||
|
||||
#include <SkBitmap.h>
|
||||
#include <SkCanvas.h>
|
||||
#include <SkPaint.h>
|
||||
#include <SkRect.h>
|
||||
#include <SkRefCnt.h>
|
||||
|
||||
class ReadbackFromHardware;
|
||||
|
||||
static TestScene::Registrar _SaveLayer(TestScene::Info{
|
||||
|
||||
@@ -17,6 +17,11 @@
|
||||
#include "TestSceneBase.h"
|
||||
#include "utils/Color.h"
|
||||
|
||||
#include <SkBitmap.h>
|
||||
#include <SkBlendMode.h>
|
||||
#include <SkColor.h>
|
||||
#include <SkRefCnt.h>
|
||||
|
||||
class RecentsAnimation;
|
||||
|
||||
static TestScene::Registrar _Recents(TestScene::Info{
|
||||
|
||||
@@ -14,7 +14,14 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <SkBitmap.h>
|
||||
#include <SkCanvas.h>
|
||||
#include <SkColor.h>
|
||||
#include <SkFont.h>
|
||||
#include <SkFontTypes.h>
|
||||
#include <SkPaint.h>
|
||||
#include <SkPoint.h>
|
||||
#include <SkRefCnt.h>
|
||||
#include <SkRRect.h>
|
||||
#include <cstdio>
|
||||
#include "TestSceneBase.h"
|
||||
|
||||
@@ -14,7 +14,12 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "SkBitmap.h"
|
||||
#include "SkBlendMode.h"
|
||||
#include "SkColorFilter.h"
|
||||
#include "SkFont.h"
|
||||
#include "SkImageInfo.h"
|
||||
#include "SkRefCnt.h"
|
||||
#include "TestSceneBase.h"
|
||||
#include "tests/common/BitmapAllocationTestUtils.h"
|
||||
#include "hwui/Paint.h"
|
||||
|
||||
@@ -25,6 +25,8 @@
|
||||
#include <cstdint>
|
||||
#include "FileBlobCache.h"
|
||||
#include "pipeline/skia/ShaderCache.h"
|
||||
#include <SkData.h>
|
||||
#include <SkRefCnt.h>
|
||||
|
||||
using namespace android::uirenderer::skiapipeline;
|
||||
|
||||
|
||||
@@ -16,9 +16,14 @@
|
||||
|
||||
#include "tests/common/TestUtils.h"
|
||||
|
||||
#include <SkBitmap.h>
|
||||
#include <SkBlendMode.h>
|
||||
#include <SkColor.h>
|
||||
#include <SkColorMatrixFilter.h>
|
||||
#include <SkColorSpace.h>
|
||||
#include <SkImagePriv.h>
|
||||
#include <SkImageInfo.h>
|
||||
#include <SkPaint.h>
|
||||
#include <SkPath.h>
|
||||
#include <SkPathOps.h>
|
||||
#include <SkShader.h>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
@@ -21,8 +21,11 @@
|
||||
#include <sys/stat.h>
|
||||
#include <utils/Log.h>
|
||||
|
||||
#include "SkData.h"
|
||||
#include "SkFontMgr.h"
|
||||
#include "SkRefCnt.h"
|
||||
#include "SkStream.h"
|
||||
#include "SkTypeface.h"
|
||||
|
||||
#include "hwui/MinikinSkia.h"
|
||||
#include "hwui/Typeface.h"
|
||||
|
||||
@@ -21,6 +21,12 @@
|
||||
#include "utils/MathUtils.h"
|
||||
#include "utils/VectorDrawableUtils.h"
|
||||
|
||||
#include <SkBitmap.h>
|
||||
#include <SkCanvas.h>
|
||||
#include <SkPath.h>
|
||||
#include <SkRefCnt.h>
|
||||
#include <SkShader.h>
|
||||
|
||||
#include <functional>
|
||||
|
||||
namespace android {
|
||||
|
||||
@@ -24,12 +24,6 @@
|
||||
|
||||
#include <log/log.h>
|
||||
|
||||
#include <SkBitmap.h>
|
||||
#include <SkBlendMode.h>
|
||||
#include <SkCanvas.h>
|
||||
#include <SkColor.h>
|
||||
#include <SkPaint.h>
|
||||
|
||||
namespace {
|
||||
// Time to spend fading out the pointer completely.
|
||||
const nsecs_t POINTER_FADE_DURATION = 500 * 1000000LL; // 500 ms
|
||||
|
||||
@@ -23,12 +23,6 @@
|
||||
|
||||
#include <log/log.h>
|
||||
|
||||
#include <SkBitmap.h>
|
||||
#include <SkBlendMode.h>
|
||||
#include <SkCanvas.h>
|
||||
#include <SkColor.h>
|
||||
#include <SkPaint.h>
|
||||
|
||||
namespace {
|
||||
// Time to spend fading out the spot completely.
|
||||
const nsecs_t SPOT_FADE_DURATION = 200 * 1000000LL; // 200 ms
|
||||
|
||||
@@ -25,6 +25,12 @@
|
||||
#include <hwui/ImageDecoder.h>
|
||||
#include <log/log.h>
|
||||
#include <SkAndroidCodec.h>
|
||||
#include <SkCodec.h>
|
||||
#include <SkColorSpace.h>
|
||||
#include <SkImageInfo.h>
|
||||
#include <SkRect.h>
|
||||
#include <SkSize.h>
|
||||
#include <SkStream.h>
|
||||
#include <utils/Color.h>
|
||||
|
||||
#include <fcntl.h>
|
||||
|
||||
Reference in New Issue
Block a user