Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "platform/graphics/paint/ClipPaintPropertyNode.h" | |
| 6 #include "platform/graphics/paint/EffectPaintPropertyNode.h" | |
| 7 #include "platform/graphics/paint/PaintChunkProperties.h" | |
| 8 #include "platform/graphics/paint/ScrollPaintPropertyNode.h" | |
| 9 #include "platform/graphics/paint/TransformPaintPropertyNode.h" | |
| 10 | |
| 11 namespace blink { | |
| 12 namespace testing { | |
| 13 | |
| 14 static inline PassRefPtr<EffectPaintPropertyNode> createOpacityOnlyEffect(PassRe fPtr<const EffectPaintPropertyNode> parent, float opacity) { | |
|
pdr.
2016/12/12 18:47:08
Nit: please format to 80cols.
| |
| 15 RefPtr<TransformPaintPropertyNode> localTransformSpace = const_cast<TransformP aintPropertyNode*>(parent->localTransformSpace()); | |
| 16 RefPtr<ClipPaintPropertyNode> outputClip = const_cast<ClipPaintPropertyNode*>( parent->outputClip()); | |
| 17 return EffectPaintPropertyNode::create(std::move(parent), std::move(localTrans formSpace), std::move(outputClip), CompositorFilterOperations(), opacity); | |
| 18 } | |
| 19 | |
| 20 static inline PaintChunkProperties defaultPaintChunkProperties() { | |
| 21 PaintChunkProperties defaultProperties; | |
| 22 defaultProperties.transform = TransformPaintPropertyNode::root(); | |
| 23 defaultProperties.clip = ClipPaintPropertyNode::root(); | |
| 24 defaultProperties.effect = EffectPaintPropertyNode::root(); | |
| 25 defaultProperties.scroll = ScrollPaintPropertyNode::root(); | |
| 26 return defaultProperties; | |
| 27 } | |
| 28 | |
| 29 } // namespace testing | |
| 30 } // namespace blink | |
| OLD | NEW |