aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2014-06-27 12:34:44 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-06-27 12:34:44 -0700
commitd3e474e20c6f0f24ddb6b2643e92975d60190daa (patch)
treef2e39eab8d338bc80f524904de5ab15bd4e0df5e /src/utils
parent67ec1f8eecfb48bc0a6ba04c0057f103c1c9696f (diff)
Deprecate SkPicture::clone().
Chrome will need -DSK_SUPPORT_LEGACY_PICTURE_CLONE. This removes the modes from our tools that use clone(). No bots run these. DM used clone() in a way that we can just share the picture now. I plan to bring back the ability to test multithreaded picture rendering soon. BUG=skia:2378 R=robertphillips@google.com, mtklein@google.com, bsalomon@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/338633011
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/SkCountdown.cpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/utils/SkCountdown.cpp b/src/utils/SkCountdown.cpp
deleted file mode 100644
index 98b3545071..0000000000
--- a/src/utils/SkCountdown.cpp
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright 2012 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#include "SkCountdown.h"
-#include "SkThread.h"
-
-SkCountdown::SkCountdown(int32_t count)
-: fCount(count) {}
-
-void SkCountdown::reset(int32_t count) {
- fCount = count;
-}
-
-void SkCountdown::run() {
- if (sk_atomic_dec(&fCount) == 1) {
- fReady.lock();
- fReady.signal();
- fReady.unlock();
- }
-}
-
-void SkCountdown::wait() {
- fReady.lock();
- while (fCount > 0) {
- fReady.wait();
- }
- fReady.unlock();
-}