Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Unified Diff: src/utils/SkCountdown.cpp

Issue 338633011: Deprecate SkPicture::clone(). (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add define for chrome Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/utils/SkCountdown.cpp
diff --git a/src/utils/SkCountdown.cpp b/src/utils/SkCountdown.cpp
deleted file mode 100644
index 98b35450717721d3baefe661defd004d82bcb042..0000000000000000000000000000000000000000
--- 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();
-}

Powered by Google App Engine
This is Rietveld 408576698