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

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

Issue 2564193002: [SPv2] Add CSS mix-blend-mode support (Closed)
Patch Set: update test expectations Created 4 years 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 2016 The Chromium Authors. All rights reserved. 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 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/EffectPaintPropertyNode.h" 5 #include "platform/graphics/paint/EffectPaintPropertyNode.h"
6 6
7 namespace blink { 7 namespace blink {
8 8
9 EffectPaintPropertyNode* EffectPaintPropertyNode::root() { 9 EffectPaintPropertyNode* EffectPaintPropertyNode::root() {
10 DEFINE_STATIC_REF( 10 DEFINE_STATIC_REF(
11 EffectPaintPropertyNode, root, 11 EffectPaintPropertyNode, root,
12 (EffectPaintPropertyNode::create( 12 (EffectPaintPropertyNode::create(
13 nullptr, TransformPaintPropertyNode::root(), 13 nullptr, TransformPaintPropertyNode::root(),
14 ClipPaintPropertyNode::root(), CompositorFilterOperations(), 1.0))); 14 ClipPaintPropertyNode::root(), CompositorFilterOperations(), 1.0,
15 SkBlendMode::kSrcOver)));
15 return root; 16 return root;
16 } 17 }
17 18
18 cc::Layer* EffectPaintPropertyNode::ensureDummyLayer() const { 19 cc::Layer* EffectPaintPropertyNode::ensureDummyLayer() const {
19 if (m_dummyLayer) 20 if (m_dummyLayer)
20 return m_dummyLayer.get(); 21 return m_dummyLayer.get();
21 m_dummyLayer = cc::Layer::Create(); 22 m_dummyLayer = cc::Layer::Create();
22 return m_dummyLayer.get(); 23 return m_dummyLayer.get();
23 } 24 }
24 25
Xianzhu 2016/12/14 01:19:43 Please wait for https://codereview.chromium.org/25
25 } // namespace blink 26 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698