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/core/painting/PictureRecorder.cpp

Issue 1216833003: Make rendering use PaintingNodes for increased efficiency. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Different approach to calling markNeedsPaint with unattached nodes Created 5 years, 5 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
« no previous file with comments | « sky/engine/core/painting/PictureRecorder.h ('k') | sky/engine/platform/graphics/DecodingImageGenerator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/painting/PictureRecorder.cpp
diff --git a/sky/engine/core/painting/PictureRecorder.cpp b/sky/engine/core/painting/PictureRecorder.cpp
index 08cb42317ccb0330e9165eb29220b2712856e8ea..cbc7cd1bbf9ba071d773b9c16641460e50f66124 100644
--- a/sky/engine/core/painting/PictureRecorder.cpp
+++ b/sky/engine/core/painting/PictureRecorder.cpp
@@ -22,9 +22,9 @@ bool PictureRecorder::isRecording() {
return m_canvas && m_canvas->isRecording();
}
-SkCanvas* PictureRecorder::beginRecording(double width, double height)
+SkCanvas* PictureRecorder::beginRecording(Rect bounds)
{
- return m_pictureRecorder->beginRecording(width, height);
+ return m_pictureRecorder->beginRecording(bounds.sk_rect);
}
PassRefPtr<Picture> PictureRecorder::endRecording()
« no previous file with comments | « sky/engine/core/painting/PictureRecorder.h ('k') | sky/engine/platform/graphics/DecodingImageGenerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698