bsalomon@google.com | a8e686e | 2011-08-16 15:45:58 +0000 | [diff] [blame] | 1 | |
| 2 | /* |
| 3 | * Copyright 2011 Google Inc. |
| 4 | * |
| 5 | * Use of this source code is governed by a BSD-style license that can be |
| 6 | * found in the LICENSE file. |
| 7 | */ |
| 8 | |
bsalomon@google.com | d472620 | 2012-08-03 14:34:46 +0000 | [diff] [blame] | 9 | // This is a GPU-backend specific test. It relies on static intializers to work |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 10 | |
bsalomon@google.com | 2a48c3a | 2012-08-03 14:54:45 +0000 | [diff] [blame] | 11 | #include "SkTypes.h" |
| 12 | |
| 13 | #if SK_SUPPORT_GPU && SK_ALLOW_STATIC_GLOBAL_INITIALIZERS |
| 14 | |
bsalomon@google.com | 5739d2c | 2012-05-31 15:07:19 +0000 | [diff] [blame] | 15 | #include "gl/GrGpuGL.h" |
bsalomon@google.com | 396e61f | 2012-10-25 19:00:29 +0000 | [diff] [blame] | 16 | #include "GrBackendEffectFactory.h" |
bsalomon@google.com | 67b915d | 2013-02-04 16:13:32 +0000 | [diff] [blame] | 17 | #include "GrContextFactory.h" |
bsalomon@google.com | c781888 | 2013-03-20 19:19:53 +0000 | [diff] [blame] | 18 | #include "GrDrawEffect.h" |
bsalomon@google.com | a04e8e8 | 2012-08-27 12:53:13 +0000 | [diff] [blame] | 19 | #include "effects/GrConfigConversionEffect.h" |
bsalomon@google.com | a1bf0ff | 2012-08-07 17:36:29 +0000 | [diff] [blame] | 20 | |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 21 | #include "SkChecksum.h" |
tfarina@chromium.org | 223137f | 2012-11-21 22:38:36 +0000 | [diff] [blame] | 22 | #include "SkRandom.h" |
bsalomon@google.com | c3841b9 | 2012-08-02 18:11:43 +0000 | [diff] [blame] | 23 | #include "Test.h" |
| 24 | |
commit-bot@chromium.org | e0e7cfe | 2013-09-09 20:09:12 +0000 | [diff] [blame] | 25 | void GrGLProgramDesc::setRandom(SkRandom* random, |
bsalomon@google.com | 31ec798 | 2013-03-27 18:14:57 +0000 | [diff] [blame] | 26 | const GrGpuGL* gpu, |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 27 | const GrRenderTarget* dstRenderTarget, |
| 28 | const GrTexture* dstCopyTexture, |
| 29 | const GrEffectStage* stages[], |
| 30 | int numColorStages, |
| 31 | int numCoverageStages, |
jvanverth@google.com | 054ae99 | 2013-04-01 20:06:51 +0000 | [diff] [blame] | 32 | int currAttribIndex) { |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 33 | int numEffects = numColorStages + numCoverageStages; |
| 34 | size_t keyLength = KeyLength(numEffects); |
| 35 | fKey.reset(keyLength); |
| 36 | *this->atOffset<uint32_t, kLengthOffset>() = static_cast<uint32_t>(keyLength); |
| 37 | memset(this->header(), 0, kHeaderSize); |
jvanverth@google.com | 054ae99 | 2013-04-01 20:06:51 +0000 | [diff] [blame] | 38 | |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 39 | KeyHeader* header = this->header(); |
| 40 | header->fEmitsPointSize = random->nextBool(); |
| 41 | |
| 42 | header->fPositionAttributeIndex = 0; |
jvanverth@google.com | 054ae99 | 2013-04-01 20:06:51 +0000 | [diff] [blame] | 43 | |
skia.committer@gmail.com | 05a2ee0 | 2013-04-02 07:01:34 +0000 | [diff] [blame] | 44 | // if the effects have used up all off the available attributes, |
jvanverth@google.com | 054ae99 | 2013-04-01 20:06:51 +0000 | [diff] [blame] | 45 | // don't try to use color or coverage attributes as input |
| 46 | do { |
commit-bot@chromium.org | 949eef0 | 2013-10-01 18:43:29 +0000 | [diff] [blame] | 47 | header->fColorInput = static_cast<GrGLProgramDesc::ColorInput>( |
| 48 | random->nextULessThan(kColorInputCnt)); |
skia.committer@gmail.com | 05a2ee0 | 2013-04-02 07:01:34 +0000 | [diff] [blame] | 49 | } while (GrDrawState::kMaxVertexAttribCnt <= currAttribIndex && |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 50 | kAttribute_ColorInput == header->fColorInput); |
| 51 | header->fColorAttributeIndex = (header->fColorInput == kAttribute_ColorInput) ? |
| 52 | currAttribIndex++ : |
| 53 | -1; |
jvanverth@google.com | 054ae99 | 2013-04-01 20:06:51 +0000 | [diff] [blame] | 54 | |
| 55 | do { |
commit-bot@chromium.org | 949eef0 | 2013-10-01 18:43:29 +0000 | [diff] [blame] | 56 | header->fCoverageInput = static_cast<GrGLProgramDesc::ColorInput>( |
| 57 | random->nextULessThan(kColorInputCnt)); |
jvanverth@google.com | 054ae99 | 2013-04-01 20:06:51 +0000 | [diff] [blame] | 58 | } while (GrDrawState::kMaxVertexAttribCnt <= currAttribIndex && |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 59 | kAttribute_ColorInput == header->fCoverageInput); |
| 60 | header->fCoverageAttributeIndex = (header->fCoverageInput == kAttribute_ColorInput) ? |
| 61 | currAttribIndex++ : |
| 62 | -1; |
bsalomon@google.com | 9120748 | 2013-02-12 21:45:24 +0000 | [diff] [blame] | 63 | |
commit-bot@chromium.org | 949eef0 | 2013-10-01 18:43:29 +0000 | [diff] [blame] | 64 | header->fColorFilterXfermode = static_cast<SkXfermode::Mode>( |
| 65 | random->nextULessThan(SkXfermode::kLastCoeffMode + 1)); |
bsalomon@google.com | 9120748 | 2013-02-12 21:45:24 +0000 | [diff] [blame] | 66 | |
bsalomon@google.com | 9120748 | 2013-02-12 21:45:24 +0000 | [diff] [blame] | 67 | #if GR_GL_EXPERIMENTAL_GS |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 68 | header->fExperimentalGS = gpu->caps()->geometryShaderSupport() && random->nextBool(); |
bsalomon@google.com | 9120748 | 2013-02-12 21:45:24 +0000 | [diff] [blame] | 69 | #endif |
| 70 | |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 71 | header->fDiscardIfZeroCoverage = random->nextBool(); |
skia.committer@gmail.com | 37cbc7f | 2013-03-27 07:01:04 +0000 | [diff] [blame] | 72 | |
jvanverth@google.com | 054ae99 | 2013-04-01 20:06:51 +0000 | [diff] [blame] | 73 | bool useLocalCoords = random->nextBool() && currAttribIndex < GrDrawState::kMaxVertexAttribCnt; |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 74 | header->fLocalCoordAttributeIndex = useLocalCoords ? currAttribIndex++ : -1; |
| 75 | |
| 76 | header->fColorEffectCnt = numColorStages; |
| 77 | header->fCoverageEffectCnt = numCoverageStages; |
bsalomon@google.com | c781888 | 2013-03-20 19:19:53 +0000 | [diff] [blame] | 78 | |
bsalomon@google.com | b79d865 | 2013-03-29 20:30:50 +0000 | [diff] [blame] | 79 | bool dstRead = false; |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 80 | bool fragPos = false; |
commit-bot@chromium.org | 6b30e45 | 2013-10-04 20:02:53 +0000 | [diff] [blame] | 81 | bool vertexCode = false; |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 82 | int numStages = numColorStages + numCoverageStages; |
| 83 | for (int s = 0; s < numStages; ++s) { |
| 84 | const GrBackendEffectFactory& factory = (*stages[s]->getEffect())->getFactory(); |
| 85 | GrDrawEffect drawEffect(*stages[s], useLocalCoords); |
| 86 | this->effectKeys()[s] = factory.glEffectKey(drawEffect, gpu->glCaps()); |
| 87 | if ((*stages[s]->getEffect())->willReadDstColor()) { |
| 88 | dstRead = true; |
| 89 | } |
| 90 | if ((*stages[s]->getEffect())->willReadFragmentPosition()) { |
| 91 | fragPos = true; |
bsalomon@google.com | 9120748 | 2013-02-12 21:45:24 +0000 | [diff] [blame] | 92 | } |
commit-bot@chromium.org | 6b30e45 | 2013-10-04 20:02:53 +0000 | [diff] [blame] | 93 | if ((*stages[s]->getEffect())->hasVertexCode()) { |
| 94 | vertexCode = true; |
| 95 | } |
bsalomon@google.com | 9120748 | 2013-02-12 21:45:24 +0000 | [diff] [blame] | 96 | } |
jvanverth@google.com | 9b855c7 | 2013-03-01 18:21:22 +0000 | [diff] [blame] | 97 | |
bsalomon@google.com | b79d865 | 2013-03-29 20:30:50 +0000 | [diff] [blame] | 98 | if (dstRead) { |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 99 | header->fDstReadKey = GrGLShaderBuilder::KeyForDstRead(dstCopyTexture, gpu->glCaps()); |
| 100 | } else { |
| 101 | header->fDstReadKey = 0; |
| 102 | } |
| 103 | if (fragPos) { |
| 104 | header->fFragPosKey = GrGLShaderBuilder::KeyForFragmentPosition(dstRenderTarget, |
| 105 | gpu->glCaps()); |
| 106 | } else { |
| 107 | header->fFragPosKey = 0; |
bsalomon@google.com | b79d865 | 2013-03-29 20:30:50 +0000 | [diff] [blame] | 108 | } |
bsalomon@google.com | 5920ac2 | 2013-04-19 13:14:45 +0000 | [diff] [blame] | 109 | |
commit-bot@chromium.org | 6b30e45 | 2013-10-04 20:02:53 +0000 | [diff] [blame] | 110 | header->fHasVertexCode = vertexCode || |
| 111 | useLocalCoords || |
| 112 | kAttribute_ColorInput == header->fColorInput || |
| 113 | kAttribute_ColorInput == header->fCoverageInput; |
| 114 | |
bsalomon@google.com | 5920ac2 | 2013-04-19 13:14:45 +0000 | [diff] [blame] | 115 | CoverageOutput coverageOutput; |
| 116 | bool illegalCoverageOutput; |
| 117 | do { |
| 118 | coverageOutput = static_cast<CoverageOutput>(random->nextULessThan(kCoverageOutputCnt)); |
| 119 | illegalCoverageOutput = (!gpu->caps()->dualSourceBlendingSupport() && |
| 120 | CoverageOutputUsesSecondaryOutput(coverageOutput)) || |
bsalomon@google.com | 72993ab | 2013-04-19 13:25:28 +0000 | [diff] [blame] | 121 | (!dstRead && kCombineWithDst_CoverageOutput == coverageOutput); |
bsalomon@google.com | 5920ac2 | 2013-04-19 13:14:45 +0000 | [diff] [blame] | 122 | } while (illegalCoverageOutput); |
| 123 | |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 124 | header->fCoverageOutput = coverageOutput; |
| 125 | |
| 126 | *this->checksum() = 0; |
| 127 | *this->checksum() = SkChecksum::Compute(reinterpret_cast<uint32_t*>(fKey.get()), keyLength); |
| 128 | fInitialized = true; |
bsalomon@google.com | 9120748 | 2013-02-12 21:45:24 +0000 | [diff] [blame] | 129 | } |
| 130 | |
bsalomon@google.com | 042a286 | 2013-02-04 18:39:24 +0000 | [diff] [blame] | 131 | bool GrGpuGL::programUnitTest(int maxStages) { |
| 132 | |
bsalomon@google.com | d472620 | 2012-08-03 14:34:46 +0000 | [diff] [blame] | 133 | GrTextureDesc dummyDesc; |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 134 | dummyDesc.fFlags = kRenderTarget_GrTextureFlagBit; |
bsalomon@google.com | fec0bc3 | 2013-02-07 14:43:04 +0000 | [diff] [blame] | 135 | dummyDesc.fConfig = kSkia8888_GrPixelConfig; |
bsalomon@google.com | d472620 | 2012-08-03 14:34:46 +0000 | [diff] [blame] | 136 | dummyDesc.fWidth = 34; |
| 137 | dummyDesc.fHeight = 18; |
| 138 | SkAutoTUnref<GrTexture> dummyTexture1(this->createTexture(dummyDesc, NULL, 0)); |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 139 | dummyDesc.fFlags = kNone_GrTextureFlags; |
bsalomon@google.com | d472620 | 2012-08-03 14:34:46 +0000 | [diff] [blame] | 140 | dummyDesc.fConfig = kAlpha_8_GrPixelConfig; |
| 141 | dummyDesc.fWidth = 16; |
| 142 | dummyDesc.fHeight = 22; |
| 143 | SkAutoTUnref<GrTexture> dummyTexture2(this->createTexture(dummyDesc, NULL, 0)); |
| 144 | |
bsalomon@google.com | c3841b9 | 2012-08-02 18:11:43 +0000 | [diff] [blame] | 145 | static const int NUM_TESTS = 512; |
| 146 | |
commit-bot@chromium.org | e0e7cfe | 2013-09-09 20:09:12 +0000 | [diff] [blame] | 147 | SkRandom random; |
bsalomon@google.com | c3841b9 | 2012-08-02 18:11:43 +0000 | [diff] [blame] | 148 | for (int t = 0; t < NUM_TESTS; ++t) { |
| 149 | |
| 150 | #if 0 |
| 151 | GrPrintf("\nTest Program %d\n-------------\n", t); |
| 152 | static const int stop = -1; |
| 153 | if (t == stop) { |
| 154 | int breakpointhere = 9; |
| 155 | } |
| 156 | #endif |
| 157 | |
bsalomon@google.com | 31ec798 | 2013-03-27 18:14:57 +0000 | [diff] [blame] | 158 | GrGLProgramDesc pdesc; |
bsalomon@google.com | c3841b9 | 2012-08-02 18:11:43 +0000 | [diff] [blame] | 159 | |
jvanverth@google.com | 054ae99 | 2013-04-01 20:06:51 +0000 | [diff] [blame] | 160 | int currAttribIndex = 1; // we need to always leave room for position |
commit-bot@chromium.org | ff6ea26 | 2013-03-12 12:26:08 +0000 | [diff] [blame] | 161 | int attribIndices[2]; |
bsalomon@google.com | b79d865 | 2013-03-29 20:30:50 +0000 | [diff] [blame] | 162 | GrTexture* dummyTextures[] = {dummyTexture1.get(), dummyTexture2.get()}; |
commit-bot@chromium.org | 9ae7850 | 2013-03-21 17:44:39 +0000 | [diff] [blame] | 163 | |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 164 | int numStages = random.nextULessThan(maxStages + 1); |
| 165 | int numColorStages = random.nextULessThan(numStages + 1); |
| 166 | int numCoverageStages = numStages - numColorStages; |
| 167 | |
| 168 | SkAutoSTMalloc<8, const GrEffectStage*> stages(numStages); |
| 169 | |
| 170 | for (int s = 0; s < numStages; ++s) { |
| 171 | SkAutoTUnref<const GrEffectRef> effect(GrEffectTestFactory::CreateStage( |
| 172 | &random, |
| 173 | this->getContext(), |
| 174 | *this->caps(), |
| 175 | dummyTextures)); |
| 176 | int numAttribs = (*effect)->numVertexAttribs(); |
| 177 | |
| 178 | // If adding this effect would exceed the max attrib count then generate a |
| 179 | // new random effect. |
| 180 | if (currAttribIndex + numAttribs > GrDrawState::kMaxVertexAttribCnt) { |
| 181 | --s; |
| 182 | continue; |
bsalomon@google.com | c3841b9 | 2012-08-02 18:11:43 +0000 | [diff] [blame] | 183 | } |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 184 | for (int i = 0; i < numAttribs; ++i) { |
| 185 | attribIndices[i] = currAttribIndex++; |
| 186 | } |
commit-bot@chromium.org | 2d3b492 | 2013-07-15 13:54:06 +0000 | [diff] [blame] | 187 | GrEffectStage* stage = SkNEW_ARGS(GrEffectStage, |
| 188 | (effect.get(), attribIndices[0], attribIndices[1])); |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 189 | stages[s] = stage; |
bsalomon@google.com | c3841b9 | 2012-08-02 18:11:43 +0000 | [diff] [blame] | 190 | } |
bsalomon@google.com | b79d865 | 2013-03-29 20:30:50 +0000 | [diff] [blame] | 191 | const GrTexture* dstTexture = random.nextBool() ? dummyTextures[0] : dummyTextures[1]; |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 192 | pdesc.setRandom(&random, |
| 193 | this, |
| 194 | dummyTextures[0]->asRenderTarget(), |
| 195 | dstTexture, |
| 196 | stages.get(), |
| 197 | numColorStages, |
| 198 | numCoverageStages, |
| 199 | currAttribIndex); |
skia.committer@gmail.com | 05a2ee0 | 2013-04-02 07:01:34 +0000 | [diff] [blame] | 200 | |
commit-bot@chromium.org | 9188a15 | 2013-09-05 18:28:24 +0000 | [diff] [blame] | 201 | SkAutoTUnref<GrGLProgram> program(GrGLProgram::Create(this, |
bsalomon@google.com | c3841b9 | 2012-08-02 18:11:43 +0000 | [diff] [blame] | 202 | pdesc, |
bsalomon@google.com | 2c84aa3 | 2013-06-06 20:28:57 +0000 | [diff] [blame] | 203 | stages, |
| 204 | stages + numColorStages)); |
bsalomon@google.com | 2db3ded | 2013-05-22 14:34:04 +0000 | [diff] [blame] | 205 | for (int s = 0; s < numStages; ++s) { |
bsalomon@google.com | 504976e | 2013-05-09 13:45:02 +0000 | [diff] [blame] | 206 | SkDELETE(stages[s]); |
| 207 | } |
bsalomon@google.com | c3841b9 | 2012-08-02 18:11:43 +0000 | [diff] [blame] | 208 | if (NULL == program.get()) { |
| 209 | return false; |
| 210 | } |
| 211 | } |
| 212 | return true; |
| 213 | } |
bsalomon@google.com | a8e686e | 2011-08-16 15:45:58 +0000 | [diff] [blame] | 214 | |
bsalomon@google.com | 67b915d | 2013-02-04 16:13:32 +0000 | [diff] [blame] | 215 | static void GLProgramsTest(skiatest::Reporter* reporter, GrContextFactory* factory) { |
| 216 | for (int type = 0; type < GrContextFactory::kLastGLContextType; ++type) { |
| 217 | GrContext* context = factory->get(static_cast<GrContextFactory::GLContextType>(type)); |
| 218 | if (NULL != context) { |
bsalomon@google.com | 042a286 | 2013-02-04 18:39:24 +0000 | [diff] [blame] | 219 | GrGpuGL* gpu = static_cast<GrGpuGL*>(context->getGpu()); |
bsalomon@google.com | eb6879f | 2013-06-13 19:34:18 +0000 | [diff] [blame] | 220 | int maxStages = 6; |
bsalomon@google.com | 042a286 | 2013-02-04 18:39:24 +0000 | [diff] [blame] | 221 | #if SK_ANGLE |
| 222 | // Some long shaders run out of temporary registers in the D3D compiler on ANGLE. |
| 223 | if (type == GrContextFactory::kANGLE_GLContextType) { |
| 224 | maxStages = 3; |
| 225 | } |
| 226 | #endif |
| 227 | REPORTER_ASSERT(reporter, gpu->programUnitTest(maxStages)); |
bsalomon@google.com | 67b915d | 2013-02-04 16:13:32 +0000 | [diff] [blame] | 228 | } |
| 229 | } |
bsalomon@google.com | a8e686e | 2011-08-16 15:45:58 +0000 | [diff] [blame] | 230 | } |
| 231 | |
bsalomon@google.com | a8e686e | 2011-08-16 15:45:58 +0000 | [diff] [blame] | 232 | #include "TestClassDef.h" |
| 233 | DEFINE_GPUTESTCLASS("GLPrograms", GLProgramsTestClass, GLProgramsTest) |
| 234 | |
rmistry@google.com | d6176b0 | 2012-08-23 18:14:13 +0000 | [diff] [blame] | 235 | // This is evil evil evil. The linker may throw away whole translation units as dead code if it |
bsalomon@google.com | 67e78c9 | 2012-10-17 13:36:14 +0000 | [diff] [blame] | 236 | // thinks none of the functions are called. It will do this even if there are static initializers |
bsalomon@google.com | a1bf0ff | 2012-08-07 17:36:29 +0000 | [diff] [blame] | 237 | // in the unit that could pass pointers to functions from the unit out to other translation units! |
| 238 | // We force some of the effects that would otherwise be discarded to link here. |
| 239 | |
| 240 | #include "SkLightingImageFilter.h" |
bsalomon@google.com | 82aa748 | 2012-08-13 14:22:17 +0000 | [diff] [blame] | 241 | #include "SkMagnifierImageFilter.h" |
bsalomon@google.com | 67e78c9 | 2012-10-17 13:36:14 +0000 | [diff] [blame] | 242 | #include "SkColorMatrixFilter.h" |
commit-bot@chromium.org | 91a798f | 2013-09-06 15:31:06 +0000 | [diff] [blame] | 243 | #include "SkBitmapAlphaThresholdShader.h" |
bsalomon@google.com | a1bf0ff | 2012-08-07 17:36:29 +0000 | [diff] [blame] | 244 | |
| 245 | void forceLinking(); |
| 246 | |
| 247 | void forceLinking() { |
| 248 | SkLightingImageFilter::CreateDistantLitDiffuse(SkPoint3(0,0,0), 0, 0, 0); |
bsalomon@google.com | 82aa748 | 2012-08-13 14:22:17 +0000 | [diff] [blame] | 249 | SkMagnifierImageFilter mag(SkRect::MakeWH(SK_Scalar1, SK_Scalar1), SK_Scalar1); |
bsalomon@google.com | adc6536 | 2013-01-28 14:26:09 +0000 | [diff] [blame] | 250 | GrConfigConversionEffect::Create(NULL, |
| 251 | false, |
| 252 | GrConfigConversionEffect::kNone_PMConversion, |
| 253 | SkMatrix::I()); |
bsalomon@google.com | 67e78c9 | 2012-10-17 13:36:14 +0000 | [diff] [blame] | 254 | SkScalar matrix[20]; |
| 255 | SkColorMatrixFilter cmf(matrix); |
commit-bot@chromium.org | 91a798f | 2013-09-06 15:31:06 +0000 | [diff] [blame] | 256 | SkBitmapAlphaThresholdShader::Create(SkBitmap(), SkRegion(), 0x80); |
bsalomon@google.com | a1bf0ff | 2012-08-07 17:36:29 +0000 | [diff] [blame] | 257 | } |
| 258 | |
bsalomon@google.com | cf8fb1f | 2012-08-02 14:03:32 +0000 | [diff] [blame] | 259 | #endif |