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

Unified Diff: Source/platform/graphics/GraphicsContextRecorder.cpp

Issue 447553002: Remove inspector deadcode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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: Source/platform/graphics/GraphicsContextRecorder.cpp
diff --git a/Source/platform/graphics/GraphicsContextRecorder.cpp b/Source/platform/graphics/GraphicsContextRecorder.cpp
index 74bb4f33ce925ed4cc71f414e2340ce51bab72ff..f4ad689b54e3b1a117cfb50396ff908d98c6f897 100644
--- a/Source/platform/graphics/GraphicsContextRecorder.cpp
+++ b/Source/platform/graphics/GraphicsContextRecorder.cpp
@@ -67,16 +67,14 @@ PassRefPtr<GraphicsContextSnapshot> GraphicsContextRecorder::stop()
m_context.clear();
m_picture = adoptRef(m_recorder->endRecording());
m_recorder.clear();
- return adoptRef(new GraphicsContextSnapshot(m_picture.release(), m_isCertainlyOpaque));
+ return adoptRef(new GraphicsContextSnapshot(m_picture.release()));
}
-GraphicsContextSnapshot::GraphicsContextSnapshot(PassRefPtr<SkPicture> picture, bool isCertainlyOpaque)
+GraphicsContextSnapshot::GraphicsContextSnapshot(PassRefPtr<SkPicture> picture)
: m_picture(picture)
- , m_isCertainlyOpaque(isCertainlyOpaque)
{
}
-
static bool decodeBitmap(const void* data, size_t length, SkBitmap* result)
{
RefPtr<SharedBuffer> buffer = SharedBuffer::create(static_cast<const char*>(data), length);
@@ -97,7 +95,7 @@ PassRefPtr<GraphicsContextSnapshot> GraphicsContextSnapshot::load(const char* da
RefPtr<SkPicture> picture = adoptRef(SkPicture::CreateFromStream(&stream, decodeBitmap));
if (!picture)
return nullptr;
- return adoptRef(new GraphicsContextSnapshot(picture, false));
+ return adoptRef(new GraphicsContextSnapshot(picture));
}
PassOwnPtr<Vector<char> > GraphicsContextSnapshot::replay(unsigned fromStep, unsigned toStep, double scale) const

Powered by Google App Engine
This is Rietveld 408576698