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

Side by Side Diff: include/utils/SkCountdown.h

Issue 338633011: Deprecate SkPicture::clone(). (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add define for chrome Created 6 years, 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright 2012 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef SkCountdown_DEFINED
9 #define SkCountdown_DEFINED
10
11 #include "SkCondVar.h"
12 #include "SkRunnable.h"
13 #include "SkTypes.h"
14
15 class SkCountdown : public SkRunnable {
16 public:
17 explicit SkCountdown(int32_t count);
18
19 /**
20 * Resets the countdown to the count provided.
21 */
22 void reset(int32_t count);
23
24 virtual void run() SK_OVERRIDE;
25
26 /**
27 * Blocks until run() has been called count times.
28 */
29 void wait();
30
31 private:
32 SkCondVar fReady;
33 int32_t fCount;
34 };
35
36 #endif
OLDNEW
« no previous file with comments | « include/core/SkPicture.h ('k') | src/core/SkPicture.cpp » ('j') | src/core/SkPicturePlayback.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698