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

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

Issue 2178523002: Revert of Add SkRasterPipeline blitter. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « src/core/SkRasterPipelineBlitter.cpp ('k') | no next file » | 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 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkXfermode.h" 8 #include "SkXfermode.h"
9 #include "SkXfermode_proccoeff.h" 9 #include "SkXfermode_proccoeff.h"
10 #include "SkColorPriv.h" 10 #include "SkColorPriv.h"
(...skipping 1402 matching lines...) Expand 10 before | Expand all | Expand 10 after
1413 1413
1414 bool SkXfermode::IsOpaque(const SkXfermode* xfer, SrcColorOpacity opacityType) { 1414 bool SkXfermode::IsOpaque(const SkXfermode* xfer, SrcColorOpacity opacityType) {
1415 // if xfer is nullptr we treat it as srcOver which is opaque if our src is o paque 1415 // if xfer is nullptr we treat it as srcOver which is opaque if our src is o paque
1416 if (!xfer) { 1416 if (!xfer) {
1417 return SkXfermode::kOpaque_SrcColorOpacity == opacityType; 1417 return SkXfermode::kOpaque_SrcColorOpacity == opacityType;
1418 } 1418 }
1419 1419
1420 return xfer->isOpaque(opacityType); 1420 return xfer->isOpaque(opacityType);
1421 } 1421 }
1422 1422
1423 bool SkXfermode::appendStages(SkRasterPipeline* pipeline) const {
1424 return this->onAppendStages(pipeline);
1425 }
1426
1427 bool SkXfermode::onAppendStages(SkRasterPipeline*) const {
1428 return false;
1429 }
1430
1431 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkXfermode) 1423 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkXfermode)
1432 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkProcCoeffXfermode) 1424 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkProcCoeffXfermode)
1433 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END 1425 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END
OLDNEW
« no previous file with comments | « src/core/SkRasterPipelineBlitter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698