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

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

Issue 14998007: Make GrGLShaderBuilder check whether GrEffect advertised that it would require the dst color or frag (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Address comments Created 7 years, 7 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 | « include/gpu/GrEffect.h ('k') | src/effects/SkLightingImageFilter.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 1340 matching lines...) Expand 10 before | Expand all | Expand 10 after
1351 setSatFunction); 1351 setSatFunction);
1352 1352
1353 } 1353 }
1354 1354
1355 typedef GrGLEffect INHERITED; 1355 typedef GrGLEffect INHERITED;
1356 }; 1356 };
1357 1357
1358 GR_DECLARE_EFFECT_TEST; 1358 GR_DECLARE_EFFECT_TEST;
1359 1359
1360 private: 1360 private:
1361 XferEffect(SkXfermode::Mode mode) : fMode(mode) { this->setWillReadDst(); } 1361 XferEffect(SkXfermode::Mode mode) : fMode(mode) { this->setWillReadDstColor( ); }
1362 virtual bool onIsEqual(const GrEffect& other) const SK_OVERRIDE { return tru e; } 1362 virtual bool onIsEqual(const GrEffect& other) const SK_OVERRIDE { return tru e; }
1363 1363
1364 SkXfermode::Mode fMode; 1364 SkXfermode::Mode fMode;
1365 1365
1366 typedef GrEffect INHERITED; 1366 typedef GrEffect INHERITED;
1367 }; 1367 };
1368 1368
1369 GR_DEFINE_EFFECT_TEST(XferEffect); 1369 GR_DEFINE_EFFECT_TEST(XferEffect);
1370 GrEffectRef* XferEffect::TestCreate(SkMWCRandom* rand, 1370 GrEffectRef* XferEffect::TestCreate(SkMWCRandom* rand,
1371 GrContext*, 1371 GrContext*,
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
1970 return proc16; 1970 return proc16;
1971 } 1971 }
1972 1972
1973 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkXfermode) 1973 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkXfermode)
1974 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkProcCoeffXfermode) 1974 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkProcCoeffXfermode)
1975 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkClearXfermode) 1975 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkClearXfermode)
1976 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSrcXfermode) 1976 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkSrcXfermode)
1977 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstInXfermode) 1977 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstInXfermode)
1978 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstOutXfermode) 1978 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkDstOutXfermode)
1979 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END 1979 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END
OLDNEW
« no previous file with comments | « include/gpu/GrEffect.h ('k') | src/effects/SkLightingImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698