* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkAAClip.h"
#include "SkCanvas.h"
#include "SkMask.h"
#include "SkPath.h"
#include "SkRandom.h"
+#include "Test.h"
static bool operator==(const SkMask& a, const SkMask& b) {
if (a.fFormat != b.fFormat || a.fBounds != b.fBounds) {
// SkPaints only have an SkPaintOptionsAndroid if SK_BUILD_FOR_ANDROID is true.
#ifdef SK_BUILD_FOR_ANDROID
-#include "SkPaintOptionsAndroid.h"
#include "SkOrderedReadBuffer.h"
#include "SkOrderedWriteBuffer.h"
#include "SkPaint.h"
+#include "SkPaintOptionsAndroid.h"
#include "Test.h"
static size_t Reconstruct(const SkPaint& src, SkPaint* dst) {
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkAnnotation.h"
-#include "SkData.h"
#include "SkCanvas.h"
+#include "SkData.h"
#include "SkPDFDevice.h"
#include "SkPDFDocument.h"
+#include "Test.h"
/** Returns true if data (may contain null characters) contains needle (null
* terminated). */
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkThread.h"
#include "SkThreadUtils.h"
#include "SkTypes.h"
+#include "Test.h"
struct AddInfo {
int32_t valueToAdd;
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkBitSet.h"
+#include "Test.h"
DEF_TEST(BitSet, reporter) {
SkBitSet set0(65536);
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkBitmap.h"
#include "SkRect.h"
+#include "Test.h"
static const char* boolStr(bool value) {
return value ? "true" : "false";
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkBitmap.h"
-#include "SkRect.h"
#include "SkRandom.h"
+#include "SkRect.h"
+#include "Test.h"
DEF_TEST(GetColor, reporter) {
static const struct Rec {
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkColorPriv.h"
#include "SkGradientShader.h"
#include "SkRect.h"
+#include "Test.h"
// these are in the same order as the SkBitmap::Config enum
static const char* gConfigName[] = {
*/
#include "SkBitmap.h"
+#include "SkCachingPixelRef.h"
#include "SkCanvas.h"
#include "SkData.h"
#include "SkDecodingImageGenerator.h"
#include "SkDiscardableMemoryPool.h"
#include "SkImageDecoder.h"
-#include "SkCachingPixelRef.h"
#include "SkScaledImageCache.h"
#include "SkStream.h"
#include "SkUtils.h"
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkBitmapDevice.h"
#include "SkCanvas.h"
#include "SkCanvasStateUtils.h"
#include "SkDrawFilter.h"
#include "SkError.h"
#include "SkPaint.h"
-#include "SkRect.h"
#include "SkRRect.h"
+#include "SkRect.h"
+#include "Test.h"
static void test_complex_layers(skiatest::Reporter* reporter) {
const int WIDTH = 400;
* found in the LICENSE file.
*/
+#include "SkRandom.h"
#include "Test.h"
#include "gradients/SkClampRange.h"
-#include "SkRandom.h"
static skiatest::Reporter* gReporter;
#include "Test.h"
// This is a GR test
#if SK_SUPPORT_GPU
+#include "../../src/gpu/GrClipMaskManager.h"
#include "GrContextFactory.h"
#include "SkGpuDevice.h"
-#include "../../src/gpu/GrClipMaskManager.h"
static const int X_SIZE = 12;
static const int Y_SIZE = 12;
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkCanvas.h"
-#include "SkPaint.h"
#include "SkCubicClipper.h"
#include "SkGeometry.h"
+#include "SkPaint.h"
+#include "Test.h"
// Currently the supersampler blitter uses int16_t for its index into an array
// the width of the clip. Test that we don't crash/assert if we try to draw
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkCanvas.h"
#include "SkEdgeClipper.h"
#include "SkLineClipper.h"
#include "SkPath.h"
+#include "Test.h"
static void test_hairclipping(skiatest::Reporter* reporter) {
SkBitmap bm;
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkColor.h"
-#include "SkColorPriv.h"
#include "SkColorFilter.h"
+#include "SkColorPriv.h"
#include "SkLumaColorFilter.h"
-#include "SkRandom.h"
-#include "SkXfermode.h"
#include "SkOrderedReadBuffer.h"
#include "SkOrderedWriteBuffer.h"
+#include "SkRandom.h"
+#include "SkXfermode.h"
+#include "Test.h"
static SkColorFilter* reincarnate_colorfilter(SkFlattenable* obj) {
SkOrderedWriteBuffer wb;
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkColor.h"
#include "SkColorPriv.h"
#include "SkMathPriv.h"
#include "SkRandom.h"
#include "SkUnPreMultiply.h"
+#include "Test.h"
#define GetPackedR16As32(packed) (SkGetPackedR16(dc) << (8 - SK_R16_BITS))
#define GetPackedG16As32(packed) (SkGetPackedG16(dc) << (8 - SK_G16_BITS))
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkData.h"
#include "SkDataTable.h"
+#include "SkOSFile.h"
#include "SkOrderedReadBuffer.h"
#include "SkOrderedWriteBuffer.h"
-#include "SkOSFile.h"
#include "SkStream.h"
+#include "Test.h"
static void test_is_equal(skiatest::Reporter* reporter,
const SkDataTable* a, const SkDataTable* b) {
* found in the LICENSE file.
*/
-#include "Test.h"
+#include "../src/image/SkImagePriv.h"
+#include "../src/image/SkSurface_Base.h"
#include "SkBitmap.h"
#include "SkBitmapDevice.h"
#include "SkBitmapProcShader.h"
#include "SkDeferredCanvas.h"
#include "SkGradientShader.h"
#include "SkShader.h"
-#include "../src/image/SkSurface_Base.h"
-#include "../src/image/SkImagePriv.h"
+#include "Test.h"
#if SK_SUPPORT_GPU
#include "GrContextFactory.h"
#else
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkDeque.h"
+#include "Test.h"
static void assert_count(skiatest::Reporter* reporter, const SkDeque& deq, int count) {
if (0 == count) {
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkDeviceLooper.h"
#include "SkRasterClip.h"
+#include "Test.h"
static void make_bm(SkBitmap* bm, int w, int h) {
bm->setConfig(SkBitmap::kA8_Config, w, h);
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkData.h"
#include "SkDiscardableMemoryPool.h"
#include "SkImageGenerator.h"
+#include "SkMatrixUtils.h"
#include "SkPaint.h"
+#include "SkRandom.h"
#include "SkShader.h"
#include "SkSurface.h"
-#include "SkRandom.h"
-#include "SkMatrixUtils.h"
+#include "Test.h"
// A BitmapFactory that always fails when asked to return pixels.
class FailureImageGenerator : public SkImageGenerator {
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkDashPathEffect.h"
#include "SkSurface.h"
+#include "Test.h"
static SkCanvas* create(SkBitmap::Config config, int w, int h, int rb,
void* addr = NULL) {
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkColor.h"
#include "SkPoint.h"
#include "SkRect.h"
#include "SkTypes.h"
+#include "Test.h"
static const SkColor bgColor = SK_ColorWHITE;
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkTDynamicHash.h"
+#include "Test.h"
namespace {
* found in the LICENSE file.
*/
-#include "Test.h"
-#include "SkPath.h"
#include "SkCanvas.h"
+#include "SkPath.h"
+#include "Test.h"
#define DIMENSION 32
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkError.h"
#include "SkPath.h"
#include "SkRect.h"
+#include "Test.h"
typedef struct {
skiatest::Reporter *fReporter;
* found in the LICENSE file.
*/
-#include "Test.h"
-#include "SkRegion.h"
+#include "SkBlitter.h"
#include "SkPath.h"
+#include "SkRegion.h"
#include "SkScan.h"
-#include "SkBlitter.h"
+#include "Test.h"
struct FakeBlitter : public SkBlitter {
FakeBlitter()
* found in the LICENSE file.
*/
-#include "Test.h"
-#include "SkTypes.h"
#include "SkTFitsIn.h"
+#include "SkTypes.h"
+#include "Test.h"
#include <limits>
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkColor.h"
#include "SkPictureFlat.h"
#include "SkShader.h"
#include "SkXfermode.h"
+#include "Test.h"
struct SkFlattenableTraits {
static void flatten(SkOrderedWriteBuffer& buffer, const SkFlattenable& flattenable) {
#include <stdlib.h>
#include <string.h>
-#include "Test.h"
#include "SkData.h"
#include "SkFlate.h"
#include "SkStream.h"
+#include "Test.h"
// A memory stream that reports zero size with the standard call, like
// an unseekable file stream would.
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkColor.h"
#include "SkStream.h"
#include "SkTypeface.h"
#include "SkTypes.h"
+#include "Test.h"
static const SkColor bgColor = SK_ColorWHITE;
* found in the LICENSE file.
*/
-#include "Test.h"
-#include "SkPaint.h"
+#include "SkEndian.h"
#include "SkFontStream.h"
#include "SkOSFile.h"
+#include "SkPaint.h"
#include "SkStream.h"
#include "SkTypeface.h"
-#include "SkEndian.h"
+#include "Test.h"
//#define DUMP_TABLES
//#define DUMP_TTC_TABLES
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkCommandLineFlags.h"
#include "SkFontMgr.h"
#include "SkTypeface.h"
+#include "Test.h"
/*
* If the font backend is going to "alias" some font names to other fonts
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkCommandLineFlags.h"
#include "SkFontMgr.h"
#include "SkOTTable_name.h"
#include "SkTypeface.h"
+#include "Test.h"
#include <stddef.h>
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkFrontBufferedStream.h"
#include "SkRefCnt.h"
#include "SkStream.h"
#include "SkTypes.h"
+#include "Test.h"
static void test_read(skiatest::Reporter* reporter, SkStream* bufferedStream,
const void* expectations, size_t bytesToRead) {
#if SK_SUPPORT_GPU && SK_ALLOW_STATIC_GLOBAL_INITIALIZERS
-#include "gl/GrGpuGL.h"
#include "GrBackendEffectFactory.h"
#include "GrContextFactory.h"
#include "GrDrawEffect.h"
#include "effects/GrConfigConversionEffect.h"
+#include "gl/GrGpuGL.h"
#include "SkChecksum.h"
#include "SkRandom.h"
// We force some of the effects that would otherwise be discarded to link here.
#include "SkAlphaThresholdFilter.h"
+#include "SkColorMatrixFilter.h"
#include "SkLightingImageFilter.h"
#include "SkMagnifierImageFilter.h"
-#include "SkColorMatrixFilter.h"
void forceLinking();
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkGeometry.h"
+#include "Test.h"
static bool nearly_equal(const SkPoint& a, const SkPoint& b) {
return SkScalarNearlyEqual(a.fX, b.fX) && SkScalarNearlyEqual(a.fY, b.fY);
(!defined(SK_BUILD_FOR_IOS)) && \
(!defined(SK_BUILD_FOR_MAC))
-#include "Test.h"
#include "SkBitmap.h"
#include "SkData.h"
#include "SkForceLinking.h"
#include "SkImage.h"
#include "SkImageDecoder.h"
#include "SkStream.h"
+#include "Test.h"
__SK_FORCE_IMAGE_DECODER_LINKING;
#include "SkColor.h"
#include "SkGpuDevice.h"
#include "SkPaint.h"
-#include "SkRect.h"
#include "SkRRect.h"
+#include "SkRect.h"
#include "Test.h"
static void test_drawPathEmpty(skiatest::Reporter*, SkCanvas* canvas) {
#include "GrContext.h"
#include "GrContextFactory.h"
-#include "GrGpu.h"
#include "GrDrawTargetCaps.h"
+#include "GrGpu.h"
#include "Test.h"
static void test_print(skiatest::Reporter*, const GrDrawTargetCaps* caps) {
// This is a GPU-backend specific test
#if SK_SUPPORT_GPU
#include "GrMemoryPool.h"
+#include "SkInstCnt.h"
#include "SkRandom.h"
#include "SkTDArray.h"
#include "SkTemplates.h"
-#include "SkInstCnt.h"
// A is the top of an inheritance tree of classes that overload op new and
// and delete to use a GrMemoryPool. The objects have values of different types
#if SK_SUPPORT_GPU
#include "GrBinHashKey.h"
#include "GrDrawTarget.h"
-#include "SkMatrix.h"
#include "GrRedBlackTree.h"
+#include "SkMatrix.h"
// If we aren't inheriting these as #defines from elsewhere,
// clang demands they be declared before we #include the template
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkBitmapDevice.h"
#include "SkColorShader.h"
#include "SkEmptyShader.h"
#include "SkGradientShader.h"
#include "SkShader.h"
#include "SkTemplates.h"
+#include "Test.h"
struct GradRec {
int fColorCount;
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkDiscardableMemory.h"
#include "SkScaledImageCache.h"
+#include "Test.h"
static void make_bm(SkBitmap* bm, int w, int h) {
bm->setConfig(SkBitmap::kARGB_8888_Config, w, h);
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkColor.h"
#include "SkShader.h"
#include "SkStream.h"
#include "SkString.h"
+#include "Test.h"
__SK_FORCE_IMAGE_DECODER_LINKING;
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkBicubicImageFilter.h"
#include "SkBitmap.h"
#include "SkBitmapDevice.h"
#include "SkBitmapSource.h"
+#include "SkBlurImageFilter.h"
#include "SkCanvas.h"
-#include "SkColorMatrixFilter.h"
#include "SkColorFilterImageFilter.h"
+#include "SkColorMatrixFilter.h"
#include "SkDeviceImageFilterProxy.h"
-#include "SkBlurImageFilter.h"
#include "SkDisplacementMapEffect.h"
#include "SkDropShadowImageFilter.h"
#include "SkLightingImageFilter.h"
+#include "SkMatrixConvolutionImageFilter.h"
#include "SkMergeImageFilter.h"
#include "SkMorphologyImageFilter.h"
-#include "SkMatrixConvolutionImageFilter.h"
#include "SkOffsetImageFilter.h"
+#include "SkRect.h"
#include "SkTileImageFilter.h"
#include "SkXfermodeImageFilter.h"
-#include "SkRect.h"
+#include "Test.h"
static const int kBitmapSize = 4;
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkRandom.h"
#include "SkRect.h"
+#include "Test.h"
static float make_zero() {
return sk_float_sin(0);
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkBitmap.h"
#include "SkData.h"
#include "SkForceLinking.h"
-#include "SkImageDecoder.h"
#include "SkImage.h"
+#include "SkImageDecoder.h"
#include "SkStream.h"
+#include "Test.h"
__SK_FORCE_IMAGE_DECODER_LINKING;
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkRandom.h"
#include "SkTInternalLList.h"
#include "SkTLList.h"
+#include "Test.h"
class ListElement {
public:
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkBitmap.h"
#include "SkBitmapDevice.h"
#include "SkCanvas.h"
#include "SkRefCnt.h"
#include "SkScalar.h"
#include "SkXfermode.h"
+#include "Test.h"
class FakeDevice : public SkBitmapDevice {
public:
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkMD5.h"
+#include "Test.h"
static bool digests_equal(const SkMD5::Digest& expectedDigest, const SkMD5::Digest& computedDigest) {
for (size_t i = 0; i < SK_ARRAY_COUNT(expectedDigest.data); ++i) {
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkColorPriv.h"
#include "SkEndian.h"
#include "SkFloatBits.h"
#include "SkMathPriv.h"
#include "SkPoint.h"
#include "SkRandom.h"
+#include "Test.h"
static void test_clz(skiatest::Reporter* reporter) {
REPORTER_ASSERT(reporter, 32 == SkCLZ(0));
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkMatrix44.h"
+#include "Test.h"
static bool nearly_equal_double(double a, double b) {
const double tolerance = 1e-7;
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkMath.h"
#include "SkMatrix.h"
#include "SkMatrixUtils.h"
#include "SkRandom.h"
+#include "Test.h"
static bool nearly_equal_scalar(SkScalar a, SkScalar b) {
const SkScalar tolerance = SK_Scalar1 / 200000;
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkChunkAlloc.h"
#include "SkUtils.h"
+#include "Test.h"
static void test_chunkalloc(skiatest::Reporter* reporter) {
size_t min = 256;
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkMetaData.h"
+#include "Test.h"
static void test_ptrs(skiatest::Reporter* reporter) {
SkRefCnt ref;
* found in the LICENSE file.
*/
-#include "Test.h"
-#include "SkMipMap.h"
#include "SkBitmap.h"
+#include "SkMipMap.h"
#include "SkRandom.h"
+#include "Test.h"
static void make_bitmap(SkBitmap* bm, SkRandom& rand) {
// for now, Build needs a min size of 2, otherwise it will return NULL.
* found in the LICENSE file.
*/
-#include "Test.h"
-#include "SkString.h"
#include "SkOSFile.h"
+#include "SkString.h"
+#include "Test.h"
/**
* Test SkPathJoin and SkBasename.
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkData.h"
#include "SkScalar.h"
#include "SkStream.h"
#include "SkTypes.h"
+#include "Test.h"
class SkPDFTestDict : public SkPDFDict {
public:
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkPackBits.h"
+#include "Test.h"
static const uint16_t gTest0[] = { 0, 0, 1, 1 };
static const uint16_t gTest1[] = { 1, 2, 3, 4, 5, 6 };
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkBlurMask.h"
#include "SkBlurMaskFilter.h"
#include "SkLayerDrawLooper.h"
-#include "SkPath.h"
#include "SkPaint.h"
+#include "SkPath.h"
#include "SkRandom.h"
#include "SkTypeface.h"
#include "SkUtils.h"
+#include "Test.h"
static size_t uni_to_utf8(const SkUnichar src[], void* dst, int count) {
char* u8 = (char*)dst;
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkParsePath.h"
+#include "Test.h"
static void test_to_from(skiatest::Reporter* reporter, const SkPath& path) {
SkString str, str2;
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkMath.h"
#include "SkPoint.h"
#include "SkScalar.h"
+#include "Test.h"
/*
Duplicates lots of code from gpu/src/GrPathUtils.cpp
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkPathMeasure.h"
+#include "Test.h"
static void test_small_segment3() {
SkPath path;
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
+
#include "PathOpsCubicIntersectionTestData.h"
+
#include <limits>
static const double D = FLT_EPSILON / 2;
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
-#include "SkPathOps.h"
#include "SkPath.h"
+#include "SkPathOps.h"
#include "SkPoint.h"
#include "Test.h"
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkCanvas.h"
#include "SkPaint.h"
-#include "SkPath.h"
#include "SkParse.h"
#include "SkParsePath.h"
+#include "SkPath.h"
#include "SkPathEffect.h"
+#include "SkRRect.h"
#include "SkRandom.h"
#include "SkReader32.h"
-#include "SkRRect.h"
#include "SkSize.h"
#include "SkSurface.h"
#include "SkTypes.h"
#include "SkWriter32.h"
+#include "Test.h"
static void make_path0(SkPath* path) {
// from * https://code.google.com/p/skia/issues/detail?id=1706
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkPathUtils.h"
#include "SkRandom.h"
#include "SkTime.h"
+#include "Test.h"
const int kNumIt = 100;
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkBitmapDevice.h"
#include "SkCanvas.h"
#include "SkColorPriv.h"
#include "SkPaint.h"
#include "SkPicture.h"
#include "SkPictureUtils.h"
-#include "SkRandom.h"
#include "SkRRect.h"
+#include "SkRandom.h"
#include "SkShader.h"
#include "SkStream.h"
+#include "Test.h"
static const int gColorScale = 30;
static const int gColorOffset = 60;
* found in the LICENSE file.
*/
+#include "SkString.h"
#include "Test.h"
#include "picture_utils.h"
-#include "SkString.h"
static void test_filepath_creation(skiatest::Reporter* reporter) {
SkString result;
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SamplePipeControllers.h"
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkGPipe.h"
#include "SkPaint.h"
#include "SkShader.h"
+#include "Test.h"
// Ensures that the pipe gracefully handles drawing an invalid bitmap.
static void testDrawingBadBitmap(SkCanvas* pipeCanvas) {
#include "Test.h"
-#include "SkPixelRef.h"
#include "SkMallocPixelRef.h"
+#include "SkPixelRef.h"
static void test_info(skiatest::Reporter* reporter) {
static const struct {
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkCanvas.h"
#include "SkDrawLooper.h"
+#include "Test.h"
/*
* Subclass of looper that just draws once, with an offset in X.
* found in the LICENSE file.
*/
-#include "Test.h"
-#include "SkRandom.h"
#include "SkRTree.h"
+#include "SkRandom.h"
#include "SkTSort.h"
+#include "Test.h"
static const size_t MIN_CHILDREN = 6;
static const size_t MAX_CHILDREN = 11;
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkRandom.h"
#include "SkTSort.h"
+#include "Test.h"
static bool anderson_darling_test(double p[32]) {
// Min and max Anderson-Darling values allowable for k=32
#include "Test.h"
#if SK_SUPPORT_GPU
-#include "SkGpuDevice.h"
#include "GrContextFactory.h"
+#include "SkGpuDevice.h"
#endif
static const int DEV_W = 100, DEV_H = 100;
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkReader32.h"
+#include "Test.h"
static void assert_eof(skiatest::Reporter* reporter, const SkReader32& reader) {
REPORTER_ASSERT(reporter, reader.eof());
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkRefCnt.h"
#include "SkTRefArray.h"
#include "SkThreadUtils.h"
#include "SkTypes.h"
#include "SkWeakRefCnt.h"
+#include "Test.h"
class InstCounterClass {
public:
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkRefDict.h"
+#include "Test.h"
class TestRC : public SkRefCnt {
public:
* found in the LICENSE file.
*/
-#include "Test.h"
-#include "SkRegion.h"
#include "SkRandom.h"
+#include "SkRegion.h"
+#include "Test.h"
static void Union(SkRegion* rgn, const SkIRect& rect) {
rgn->op(rect, SkRegion::kUnion_Op);
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkMatrix.h"
#include "SkRRect.h"
+#include "Test.h"
static const SkScalar kWidth = 100.0f;
static const SkScalar kHeight = 100.0f;
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkSHA1.h"
+#include "Test.h"
static bool digests_equal(const SkSHA1::Digest& expectedDigest, const SkSHA1::Digest& computedDigest) {
for (size_t i = 0; i < SK_ARRAY_COUNT(expectedDigest.data); ++i) {
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkFloatingPoint.h"
#include "SkMath.h"
#include "SkPoint.h"
#include "SkRandom.h"
#include "SkRect.h"
+#include "Test.h"
struct PointSet {
const SkPoint* fPts;
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkBitmapDevice.h"
#include "SkBitmapSource.h"
#include "SkCanvas.h"
#include "SkOrderedWriteBuffer.h"
#include "SkValidatingReadBuffer.h"
#include "SkXfermodeImageFilter.h"
+#include "Test.h"
static const uint32_t kArraySize = 64;
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkCanvas.h"
-#include "SkShader.h"
-#include "SkRectShaderImageFilter.h"
#include "SkGradientShader.h"
+#include "SkRectShaderImageFilter.h"
+#include "SkShader.h"
+#include "Test.h"
DEF_TEST(ShaderImageFilter, reporter) {
int w = 10, h = 10;
* found in the LICENSE file.
*/
-#include "Test.h"
-#include "SkShader.h"
-#include "SkGradientShader.h"
#include "SkColorShader.h"
+#include "SkGradientShader.h"
+#include "SkShader.h"
+#include "Test.h"
static void test_bitmap(skiatest::Reporter* reporter) {
SkBitmap bmp;
#include "gl/GrGLDefines.h"
#include "SkBitmap.h"
+#include "SkCanvas.h"
#include "SkColor.h"
#include "SkDevice.h"
-#include "SkCanvas.h"
#include "SkGraphics.h"
#include "SkImageDecoder.h"
#include "SkImageEncoder.h"
-#include "SkStream.h"
#include "SkOSFile.h"
#include "SkPicture.h"
#include "SkRTConf.h"
#include "SkRunnable.h"
+#include "SkStream.h"
#include "SkString.h"
#include "SkTArray.h"
#include "SkTDArray.h"
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkRandom.h"
#include "SkTSort.h"
+#include "Test.h"
extern "C" {
static int compare_int(const void* a, const void* b) {
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkColorPriv.h"
#include "SkXfermode.h"
+#include "Test.h"
// our std SkAlpha255To256
static int test_srcover0(unsigned dst, unsigned alpha) {
* found in the LICENSE file.
*/
-#include "Test.h"
-#include "SkRandom.h"
+#include "SkData.h"
#include "SkOSFile.h"
+#include "SkRandom.h"
#include "SkStream.h"
-#include "SkData.h"
+#include "Test.h"
#ifndef SK_BUILD_FOR_WIN
#include <unistd.h>
* found in the LICENSE file.
*/
-#include "Test.h"
-#include "SkString.h"
#include <stdarg.h>
#include <stdio.h>
+#include "SkString.h"
+#include "Test.h"
// Windows vsnprintf doesn't 0-terminate safely), but is so far
// encapsulated in SkString that we can't test it directly.
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkPaint.h"
#include "SkPath.h"
#include "SkRect.h"
#include "SkStroke.h"
+#include "Test.h"
static bool equal(const SkRect& a, const SkRect& b) {
return SkScalarNearlyEqual(a.left(), b.left()) &&
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkGraphics.h"
#include "SkPaint.h"
#include "SkTLS.h"
#include "SkThreadUtils.h"
+#include "Test.h"
static void thread_main(void*) {
SkGraphics::SetTLSFontCacheLimit(1 * 1024 * 1024);
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkTSet.h"
+#include "Test.h"
// Tests the SkTSet<T> class template.
// Functions that just call SkTDArray are not tested.
*/
#include "Test.h"
+#include "SkError.h"
#include "SkString.h"
#include "SkTArray.h"
#include "SkTime.h"
-#include "SkError.h"
#if SK_SUPPORT_GPU
#include "GrContext.h"
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkSize.h"
+#include "Test.h"
static void TestISize(skiatest::Reporter* reporter) {
SkISize a, b;
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkBitmapDevice.h"
#include "SkCanvas.h"
#include "SkTileGrid.h"
#include "SkTileGridPicture.h"
+#include "Test.h"
enum Tile {
kTopLeft_Tile = 0x1,
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkData.h"
-#include "SkPDFTypes.h"
#include "SkPDFFont.h"
+#include "SkPDFTypes.h"
#include "SkStream.h"
+#include "Test.h"
static bool stream_equals(const SkDynamicMemoryWStream& stream, size_t offset,
const char* buffer, size_t len) {
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkTypeface.h"
+#include "Test.h"
DEF_TEST(Typeface, reporter) {
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkPaint.h"
#include "SkUtils.h"
+#include "Test.h"
// Unicode Variation Selector ranges: inclusive
#define UVS_MIN0 0x180B
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkRTConf.h"
+#include "Test.h"
DEF_TEST(UnitTest, reporter) {
#ifdef SK_SUPPORT_UNITTEST
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkRandom.h"
#include "SkRefCnt.h"
#include "SkTSearch.h"
#include "SkTSort.h"
#include "SkUtils.h"
+#include "Test.h"
class RefClass : public SkRefCnt {
public:
#include "Test.h"
#if SK_SUPPORT_GPU
-#include "SkGpuDevice.h"
#include "GrContextFactory.h"
+#include "SkGpuDevice.h"
#else
class GrContext;
class GrContextFactory;
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkRandom.h"
#include "SkReader32.h"
#include "SkWriter32.h"
+#include "Test.h"
static void check_contents(skiatest::Reporter* reporter, const SkWriter32& writer,
const void* expected, size_t size) {
* found in the LICENSE file.
*/
-#include "Test.h"
#include "SkColor.h"
#include "SkXfermode.h"
+#include "Test.h"
static SkPMColor bogusXfermodeProc(SkPMColor src, SkPMColor dst) {
return 42;
* found in the LICENSE file.
*/
+#include "OverwriteLine.h"
#include "SkCommandLineFlags.h"
#include "SkGraphics.h"
#include "SkOSFile.h"
#include "SkThreadPool.h"
#include "SkTime.h"
#include "Test.h"
-#include "OverwriteLine.h"
#if SK_SUPPORT_GPU
#include "GrContext.h"