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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/SkPictureBuilder.cpp

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: DrawingDisplayItem Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "platform/graphics/paint/SkPictureBuilder.h" 5 #include "platform/graphics/paint/SkPictureBuilder.h"
6 6
7 #include "platform/geometry/FloatRect.h" 7 #include "platform/geometry/FloatRect.h"
8 #include "platform/graphics/GraphicsContext.h" 8 #include "platform/graphics/GraphicsContext.h"
9 #include "platform/graphics/paint/PaintController.h" 9 #include "platform/graphics/paint/PaintController.h"
10 #include "wtf/PtrUtil.h" 10 #include "wtf/PtrUtil.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 m_context->setPrinting(containingContext->printing()); 48 m_context->setPrinting(containingContext->printing());
49 } 49 }
50 } 50 }
51 51
52 SkPictureBuilder::~SkPictureBuilder() { 52 SkPictureBuilder::~SkPictureBuilder() {
53 #if DCHECK_IS_ON() 53 #if DCHECK_IS_ON()
54 m_paintController->setUsage(PaintController::ForNormalUsage); 54 m_paintController->setUsage(PaintController::ForNormalUsage);
55 #endif 55 #endif
56 } 56 }
57 57
58 sk_sp<SkPicture> SkPictureBuilder::endRecording() { 58 sk_sp<PaintRecord> SkPictureBuilder::endRecording() {
59 m_context->beginRecording(m_bounds); 59 m_context->beginRecording(m_bounds);
60 m_paintController->commitNewDisplayItems(); 60 m_paintController->commitNewDisplayItems();
61 m_paintController->paintArtifact().replay(*m_context); 61 m_paintController->paintArtifact().replay(*m_context);
62 return m_context->endRecording(); 62 return m_context->endRecording();
63 } 63 }
64 64
65 } // namespace blink 65 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698