mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
R=abarth@chromium.org, eseidel@chromium.org Review URL: https://codereview.chromium.org/1170963003.
27 lines
824 B
C++
27 lines
824 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.
|
|
|
|
#ifndef SKY_ENGINE_CORE_PAINTING_TRANSFERMODE_H_
|
|
#define SKY_ENGINE_CORE_PAINTING_TRANSFERMODE_H_
|
|
|
|
#include "sky/engine/tonic/dart_converter.h"
|
|
#include "third_party/skia/include/core/SkXfermode.h"
|
|
|
|
namespace blink {
|
|
|
|
class TransferMode {};
|
|
|
|
template <>
|
|
struct DartConverter<TransferMode>
|
|
: public DartConverterEnum<SkXfermode::Mode> {};
|
|
|
|
// If this fails, it's because SkXfermode has changed. We need to change
|
|
// TransferMode.dart to ensure the TransferMode enum is in sync with the C++
|
|
// values.
|
|
COMPILE_ASSERT(SkXfermode::kLastMode == 28, Need_to_update_TransferMode_dart);
|
|
|
|
} // namespace blink
|
|
|
|
#endif // SKY_ENGINE_CORE_PAINTING_TRANSFERMODE_H_
|