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

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

Issue 816543004: Update from https://crrev.com/308996 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/GraphicsContextRecorder.cpp
diff --git a/sky/engine/platform/graphics/GraphicsContextRecorder.cpp b/sky/engine/platform/graphics/GraphicsContextRecorder.cpp
index 05d82f6f6b57007e5b6db98c1ef479b2730c8ee7..b093f3f8c2c92dbbac728bc433c50893f86ff77f 100644
--- a/sky/engine/platform/graphics/GraphicsContextRecorder.cpp
+++ b/sky/engine/platform/graphics/GraphicsContextRecorder.cpp
@@ -107,7 +107,7 @@ PassOwnPtr<Vector<char> > GraphicsContextSnapshot::replay(unsigned fromStep, uns
ReplayingCanvas canvas(bitmap, fromStep, toStep);
canvas.scale(scale, scale);
canvas.resetStepCount();
- m_picture->draw(&canvas, &canvas);
+ m_picture->playback(&canvas, &canvas);
}
OwnPtr<Vector<char> > base64Data = adoptPtr(new Vector<char>());
Vector<char> encodedImage;
@@ -136,7 +136,7 @@ PassOwnPtr<GraphicsContextSnapshot::Timings> GraphicsContextSnapshot::profile(un
if (step)
canvas = adoptPtr(new ProfilingCanvas(bitmap));
canvas->setTimings(currentTimings);
- m_picture->draw(canvas.get());
+ m_picture->playback(canvas.get());
now = WTF::monotonicallyIncreasingTime();
}
return timings.release();
@@ -146,7 +146,7 @@ PassRefPtr<JSONArray> GraphicsContextSnapshot::snapshotCommandLog() const
{
const SkIRect bounds = m_picture->cullRect().roundOut();
LoggingCanvas canvas(bounds.width(), bounds.height());
- m_picture->draw(&canvas);
+ m_picture->playback(&canvas);
return canvas.log();
}

Powered by Google App Engine
This is Rietveld 408576698