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

Unified Diff: Source/platform/graphics/paint/DrawingRecorder.cpp

Issue 892293002: First version of new merge algorithm (not enabled yet) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase again again Created 5 years, 10 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/platform/graphics/paint/DrawingRecorder.cpp
diff --git a/Source/platform/graphics/paint/DrawingRecorder.cpp b/Source/platform/graphics/paint/DrawingRecorder.cpp
index fbd84c17b5547b2344da195e75f3d51d6f48ad40..f3ae3088ab9f3e80501fd94b4131fa2771214fd9 100644
--- a/Source/platform/graphics/paint/DrawingRecorder.cpp
+++ b/Source/platform/graphics/paint/DrawingRecorder.cpp
@@ -19,7 +19,6 @@ DrawingRecorder::DrawingRecorder(GraphicsContext* context, DisplayItemClient dis
: m_context(context)
, m_displayItemClient(displayItemClient)
, m_displayItemType(displayItemType)
- , m_bounds(bounds)
, m_canUseCachedDrawing(false)
{
if (!RuntimeEnabledFeatures::slimmingPaintEnabled())
@@ -60,9 +59,8 @@ DrawingRecorder::~DrawingRecorder()
} else {
RefPtr<const SkPicture> picture = m_context->endRecording();
if (!picture || !picture->approximateOpCount())
- displayItem = DisplayItem::create(m_displayItemClient, m_displayItemType);
- else
- displayItem = DrawingDisplayItem::create(m_displayItemClient, m_displayItemType, picture);
+ return;
+ displayItem = DrawingDisplayItem::create(m_displayItemClient, m_displayItemType, picture);
}
#ifndef NDEBUG
« no previous file with comments | « Source/platform/graphics/paint/DrawingRecorder.h ('k') | Source/platform/graphics/paint/SubtreeDisplayItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698