| Index: cc/paint/paint_flags.cc
|
| diff --git a/cc/paint/paint_flags.cc b/cc/paint/paint_flags.cc
|
| deleted file mode 100644
|
| index e16a8bb8073b501d5538513b986713c3de7acf9e..0000000000000000000000000000000000000000
|
| --- a/cc/paint/paint_flags.cc
|
| +++ /dev/null
|
| @@ -1,42 +0,0 @@
|
| -// Copyright 2017 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 "cc/paint/paint_flags.h"
|
| -
|
| -namespace cc {
|
| -
|
| -bool PaintFlags::IsSimpleOpacity() const {
|
| - uint32_t color = getColor();
|
| - if (SK_ColorTRANSPARENT != SkColorSetA(color, SK_AlphaTRANSPARENT))
|
| - return false;
|
| - if (!isSrcOver())
|
| - return false;
|
| - if (getLooper())
|
| - return false;
|
| - if (getPathEffect())
|
| - return false;
|
| - if (getShader())
|
| - return false;
|
| - if (getMaskFilter())
|
| - return false;
|
| - if (getColorFilter())
|
| - return false;
|
| - if (getImageFilter())
|
| - return false;
|
| - return true;
|
| -}
|
| -
|
| -bool PaintFlags::SupportsFoldingAlpha() const {
|
| - if (!isSrcOver())
|
| - return false;
|
| - if (getColorFilter())
|
| - return false;
|
| - if (getImageFilter())
|
| - return false;
|
| - if (getLooper())
|
| - return false;
|
| - return true;
|
| -}
|
| -
|
| -} // namespace cc
|
|
|