mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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
41 lines
819 B
C++
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
|