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

Unified Diff: Source/WebCore/platform/graphics/chromium/CanvasLayerTextureUpdater.cpp

Issue 10574034: Merge 120640 - [chromium] REGRESSION(r120346) ContentLayerPainter should clear rect to be painted (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 years, 6 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: Source/WebCore/platform/graphics/chromium/CanvasLayerTextureUpdater.cpp
===================================================================
--- Source/WebCore/platform/graphics/chromium/CanvasLayerTextureUpdater.cpp (revision 120770)
+++ Source/WebCore/platform/graphics/chromium/CanvasLayerTextureUpdater.cpp (working copy)
@@ -33,6 +33,9 @@
#include "GraphicsContext.h"
#include "LayerPainterChromium.h"
#include "PlatformContextSkia.h"
+#include "SkCanvas.h"
+#include "SkPaint.h"
+#include "SkRect.h"
#include "SkiaUtils.h"
#include "TraceEvent.h"
@@ -63,6 +66,12 @@
scaledContentRect = enclosingIntRect(rect);
}
+ SkPaint paint;
+ paint.setAntiAlias(false);
+ paint.setXfermodeMode(SkXfermode::kClear_Mode);
+ canvas->drawRect(scaledContentRect, paint);
+ canvas->clipRect(scaledContentRect);
+
m_painter->paint(canvas, scaledContentRect, resultingOpaqueRect);
canvas->restore();
« no previous file with comments | « Source/WebCore/ChangeLog ('k') | Source/WebCore/platform/graphics/chromium/OpaqueRectTrackingContentLayerDelegate.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698