aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/QuickRejectTest.cpp
diff options
context:
space:
mode:
authorGravatar Matt Sarett <msarett@google.com>2017-03-30 12:41:48 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-03-30 18:02:58 +0000
commitcdc651d29d88e87ef84d5a586879db2c16ff4579 (patch)
tree9fcd85326b1a5dbda864da9431a878bb62f65191 /tests/QuickRejectTest.cpp
parentb1f76531f673854135b19fa4342c0d085be2bf29 (diff)
Make xformer class for SkCSXCanvas, use for draw loopers
Fixes draw looper gms in gbr-8888 config. Bug: skia: Change-Id: I0a9306cc0523c82f2ad9516752d79c1d86b1e295 Reviewed-on: https://skia-review.googlesource.com/10644 Commit-Queue: Matt Sarett <msarett@google.com> Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'tests/QuickRejectTest.cpp')
-rw-r--r--tests/QuickRejectTest.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/QuickRejectTest.cpp b/tests/QuickRejectTest.cpp
index cf886d3d34..b705253e34 100644
--- a/tests/QuickRejectTest.cpp
+++ b/tests/QuickRejectTest.cpp
@@ -7,6 +7,7 @@
#include "SkArenaAlloc.h"
#include "SkCanvas.h"
+#include "SkColorSpaceXformer.h"
#include "SkDrawLooper.h"
#include "SkLightingImageFilter.h"
#include "SkTypes.h"
@@ -22,6 +23,10 @@ public:
return alloc->make<TestDrawLooperContext>();
}
+ sk_sp<SkDrawLooper> onMakeColorSpace(SkColorSpaceXformer*) const override {
+ return nullptr;
+ }
+
#ifndef SK_IGNORE_TO_STRING
void toString(SkString* str) const override {
str->append("TestLooper:");
@@ -44,6 +49,7 @@ private:
}
return false;
}
+
private:
bool fOnce;
};