mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
I had to complicate the IDL bindings generation to allow passing an array of colors. Without these changes, we'd try to convert the dart object to Vector<SkColor>, which C++ thinks is Vector<unsigned>, and we'd use the wrong converter. So I added some template grease to force it to use a Vector<CanvasColor> converter. R=eseidel@chromium.org Review URL: https://codereview.chromium.org/1152963009
18 lines
377 B
C++
18 lines
377 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/Shader.h"
|
|
|
|
namespace blink {
|
|
|
|
Shader::Shader(PassRefPtr<SkShader> shader)
|
|
: shader_(shader) {
|
|
}
|
|
|
|
Shader::~Shader() {
|
|
}
|
|
|
|
} // namespace blink
|