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

Unified Diff: sky/engine/platform/graphics/GraphicsContext.cpp

Issue 893093002: Delete remaining masks dead code. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: sky/engine/platform/graphics/GraphicsContext.cpp
diff --git a/sky/engine/platform/graphics/GraphicsContext.cpp b/sky/engine/platform/graphics/GraphicsContext.cpp
index 9c1db22a57b1d52a14c61e006e2d55f7e2dcc336..1a8451c070a3d87c0153a49ea240b4e729a2ed42 100644
--- a/sky/engine/platform/graphics/GraphicsContext.cpp
+++ b/sky/engine/platform/graphics/GraphicsContext.cpp
@@ -1649,20 +1649,7 @@ void GraphicsContext::setRadii(SkVector* radii, IntSize topLeft, IntSize topRigh
PassRefPtr<SkColorFilter> GraphicsContext::WebCoreColorFilterToSkiaColorFilter(ColorFilter colorFilter)
{
- switch (colorFilter) {
- case ColorFilterLuminanceToAlpha:
- return adoptRef(SkLumaColorFilter::Create());
- case ColorFilterLinearRGBToSRGB:
- return ImageBuffer::createColorSpaceFilter(ColorSpaceLinearRGB, ColorSpaceDeviceRGB);
- case ColorFilterSRGBToLinearRGB:
- return ImageBuffer::createColorSpaceFilter(ColorSpaceDeviceRGB, ColorSpaceLinearRGB);
- case ColorFilterNone:
- break;
- default:
- ASSERT_NOT_REACHED();
- break;
- }
-
+ // FIXME(sky): Remove
return nullptr;
}
« no previous file with comments | « sky/engine/core/rendering/style/StyleRareNonInheritedData.cpp ('k') | sky/engine/platform/graphics/GraphicsTypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698