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

Unified Diff: trunk/Source/core/platform/graphics/skia/NativeImageSkia.cpp

Issue 23507002: Revert 156733 "Refactoring DrawLooper so that it can apply shado..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 7 years, 4 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: trunk/Source/core/platform/graphics/skia/NativeImageSkia.cpp
===================================================================
--- trunk/Source/core/platform/graphics/skia/NativeImageSkia.cpp (revision 156736)
+++ trunk/Source/core/platform/graphics/skia/NativeImageSkia.cpp (working copy)
@@ -31,7 +31,6 @@
#include "config.h"
#include "core/platform/graphics/skia/NativeImageSkia.h"
-#include "core/platform/FloatConversion.h"
#include "core/platform/PlatformInstrumentation.h"
#include "core/platform/chromium/TraceEvent.h"
#include "core/platform/graphics/FloatPoint.h"
@@ -327,14 +326,7 @@
SkPaint paint;
paint.setXfermodeMode(compOp);
paint.setAlpha(context->getNormalizedAlpha());
- DrawLooper* drawLooper = context->drawLooper();
- if (drawLooper) {
- if (drawLooper->shouldUseImageFilterToDrawBitmap(bitmap())) {
- paint.setImageFilter(context->drawLooper()->imageFilter());
- } else {
- paint.setLooper(drawLooper->skDrawLooper());
- }
- }
+ paint.setLooper(context->drawLooper());
// only antialias if we're rotated or skewed
paint.setAntiAlias(hasNon90rotation(context));
« no previous file with comments | « trunk/Source/core/platform/graphics/GraphicsContextState.h ('k') | trunk/Source/core/rendering/EllipsisBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698