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

Side by Side Diff: sky/engine/core/dom/Document.cpp

Issue 1190123003: Decouple Canvas from DisplayList and map Picture and PictureRecorder more directly to their Skia co… (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebased version of previous patch Created 5 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved.
(...skipping 2198 matching lines...) Expand 10 before | Expand all | Expand 10 after
2209 } 2209 }
2210 2210
2211 Picture* Document::rootPicture() const 2211 Picture* Document::rootPicture() const
2212 { 2212 {
2213 return m_picture.get(); 2213 return m_picture.get();
2214 } 2214 }
2215 2215
2216 void Document::setRootPicture(PassRefPtr<Picture> picture) 2216 void Document::setRootPicture(PassRefPtr<Picture> picture)
2217 { 2217 {
2218 m_picture = picture; 2218 m_picture = picture;
2219 if (m_picture)
2220 PaintingTasks::enqueueCommit(this, m_picture->displayList());
2221 scheduleVisualUpdate(); 2219 scheduleVisualUpdate();
2222 } 2220 }
2223 2221
2224 } // namespace blink 2222 } // namespace blink
2225 2223
2226 #ifndef NDEBUG 2224 #ifndef NDEBUG
2227 using namespace blink; 2225 using namespace blink;
2228 void showLiveDocumentInstances() 2226 void showLiveDocumentInstances()
2229 { 2227 {
2230 WeakDocumentSet& set = liveDocumentSet(); 2228 WeakDocumentSet& set = liveDocumentSet();
2231 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 2229 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
2232 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) { 2230 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) {
2233 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut f8().data()); 2231 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut f8().data());
2234 } 2232 }
2235 } 2233 }
2236 #endif 2234 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698