Matt Perry 485523560f Add a MaskFilter interface to dart:sky to handle blur.
For this, I added back my previous CustomDart attribute for customizing the
generated Dart code of an interface.

R=eseidel@chromium.org

Review URL: https://codereview.chromium.org/1162843003
2015-06-02 17:26:32 -04:00

41 lines
819 B
C++

// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "sky/engine/config.h"
#include "sky/engine/core/painting/Paint.h"
#include "sky/engine/core/painting/ColorFilter.h"
#include "sky/engine/core/painting/DrawLooper.h"
#include "sky/engine/core/painting/MaskFilter.h"
namespace blink {
Paint::Paint()
{
}
Paint::~Paint()
{
}
void Paint::setDrawLooper(DrawLooper* looper)
{
ASSERT(looper);
m_paint.setLooper(looper->looper());
}
void Paint::setColorFilter(ColorFilter* filter)
{
ASSERT(filter);
m_paint.setColorFilter(filter->filter());
}
void Paint::setMaskFilter(MaskFilter* filter)
{
ASSERT(filter);
m_paint.setMaskFilter(filter->filter());
}
} // namespace blink