Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Side by Side Diff: src/core/SkXfermode.cpp

Issue 39393002: Always create an instance when testing GrEffects for SkXfermode and SkArithmeticMode (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/effects/SkArithmeticMode.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #include "SkXfermode.h" 10 #include "SkXfermode.h"
(...skipping 1316 matching lines...) Expand 10 before | Expand all | Expand 10 after
1327 typedef GrEffect INHERITED; 1327 typedef GrEffect INHERITED;
1328 }; 1328 };
1329 1329
1330 GR_DEFINE_EFFECT_TEST(XferEffect); 1330 GR_DEFINE_EFFECT_TEST(XferEffect);
1331 GrEffectRef* XferEffect::TestCreate(SkRandom* rand, 1331 GrEffectRef* XferEffect::TestCreate(SkRandom* rand,
1332 GrContext*, 1332 GrContext*,
1333 const GrDrawTargetCaps&, 1333 const GrDrawTargetCaps&,
1334 GrTexture*[]) { 1334 GrTexture*[]) {
1335 int mode = rand->nextRangeU(SkXfermode::kLastCoeffMode + 1, SkXfermode::kLas tSeparableMode); 1335 int mode = rand->nextRangeU(SkXfermode::kLastCoeffMode + 1, SkXfermode::kLas tSeparableMode);
1336 1336
1337 static AutoEffectUnref gEffect(SkNEW_ARGS(XferEffect, (static_cast<SkXfermod e::Mode>(mode), NULL))); 1337 AutoEffectUnref gEffect(SkNEW_ARGS(XferEffect, (static_cast<SkXfermode::Mode >(mode), NULL)));
1338 return CreateEffectRef(gEffect); 1338 return CreateEffectRef(gEffect);
1339 } 1339 }
1340 1340
1341 #endif 1341 #endif
1342 1342
1343 /////////////////////////////////////////////////////////////////////////////// 1343 ///////////////////////////////////////////////////////////////////////////////
1344 /////////////////////////////////////////////////////////////////////////////// 1344 ///////////////////////////////////////////////////////////////////////////////
1345 1345
1346 bool SkProcCoeffXfermode::asMode(Mode* mode) const { 1346 bool SkProcCoeffXfermode::asMode(Mode* mode) const {
1347 if (mode) { 1347 if (mode) {
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
1947 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkXfermode) 1947 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkXfermode)
1948 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkProcCoeffXfermode) 1948 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkProcCoeffXfermode)
1949 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkClearXfermode) 1949 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkClearXfermode)
1950 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSrcXfermode) 1950 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSrcXfermode)
1951 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstInXfermode) 1951 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstInXfermode)
1952 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstOutXfermode) 1952 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstOutXfermode)
1953 #if !SK_ARM_NEON_IS_NONE 1953 #if !SK_ARM_NEON_IS_NONE
1954 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkNEONProcCoeffXfermode) 1954 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkNEONProcCoeffXfermode)
1955 #endif 1955 #endif
1956 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END 1956 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END
OLDNEW
« no previous file with comments | « no previous file | src/effects/SkArithmeticMode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698