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

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

Issue 2784373004: [SPv2] Replay DragImages into PropertyTreeState of the enclosing stacking context (Closed)
Patch Set: none Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/PaintRecordBuilder.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/PaintRecordBuilder.h" 5 #include "platform/graphics/paint/PaintRecordBuilder.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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 m_context->setPrinting(containingContext->printing()); 44 m_context->setPrinting(containingContext->printing());
45 } 45 }
46 } 46 }
47 47
48 PaintRecordBuilder::~PaintRecordBuilder() { 48 PaintRecordBuilder::~PaintRecordBuilder() {
49 #if DCHECK_IS_ON() 49 #if DCHECK_IS_ON()
50 m_paintController->setUsage(PaintController::ForNormalUsage); 50 m_paintController->setUsage(PaintController::ForNormalUsage);
51 #endif 51 #endif
52 } 52 }
53 53
54 sk_sp<PaintRecord> PaintRecordBuilder::endRecording() { 54 sk_sp<PaintRecord> PaintRecordBuilder::endRecording(
55 const PropertyTreeState& propertyTreeState) {
55 m_context->beginRecording(m_bounds); 56 m_context->beginRecording(m_bounds);
56 m_paintController->commitNewDisplayItems(); 57 m_paintController->commitNewDisplayItems();
57 m_paintController->paintArtifact().replay(m_bounds, *m_context); 58 m_paintController->paintArtifact().replay(m_bounds, *m_context,
59 propertyTreeState);
58 return m_context->endRecording(); 60 return m_context->endRecording();
59 } 61 }
60 62
61 } // namespace blink 63 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/PaintRecordBuilder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698