diff options
author | Hal Canary <halcanary@google.com> | 2017-01-12 12:22:47 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-01-12 19:52:18 +0000 |
commit | 3d97a0e2adbfa3a340031e501616c6c3ba0ff95a (patch) | |
tree | 87aa79913b647218d582a6803a9d4280b26ed7c0 /src/animator/SkDrawClip.cpp | |
parent | 5aedd6d5a31973dcfc8ecb9f995ac0e8d9840163 (diff) |
rm -r {include,src}/animator
Change-Id: Ibfb57dfa7fd317fb0737096cc7c1bbcb644421b5
Reviewed-on: https://skia-review.googlesource.com/6957
Reviewed-by: Hal Canary <halcanary@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'src/animator/SkDrawClip.cpp')
-rw-r--r-- | src/animator/SkDrawClip.cpp | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/animator/SkDrawClip.cpp b/src/animator/SkDrawClip.cpp deleted file mode 100644 index bca816f637..0000000000 --- a/src/animator/SkDrawClip.cpp +++ /dev/null @@ -1,39 +0,0 @@ - -/* - * Copyright 2006 The Android Open Source Project - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - - -#include "SkDrawClip.h" -#include "SkAnimateMaker.h" -#include "SkCanvas.h" -#include "SkDrawRectangle.h" -#include "SkDrawPath.h" - - -#if SK_USE_CONDENSED_INFO == 0 - -const SkMemberInfo SkDrawClip::fInfo[] = { - SK_MEMBER(path, Path), - SK_MEMBER(rect, Rect) -}; - -#endif - -DEFINE_GET_MEMBER(SkDrawClip); - -SkDrawClip::SkDrawClip() : rect(nullptr), path(nullptr) { -} - -bool SkDrawClip::draw(SkAnimateMaker& maker ) { - if (rect != nullptr) - maker.fCanvas->clipRect(rect->fRect); - else { - SkASSERT(path != nullptr); - maker.fCanvas->clipPath(path->fPath); - } - return false; -} |