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

Side by Side Diff: include/core/SkRefCnt.h

Issue 303813003: Revert "Remove SkThread.h from public API." (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « include/core/SkOnce.h ('k') | include/core/SkThread.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkRefCnt_DEFINED 10 #ifndef SkRefCnt_DEFINED
11 #define SkRefCnt_DEFINED 11 #define SkRefCnt_DEFINED
12 12
13 #include "SkDynamicAnnotations.h" 13 #include "SkDynamicAnnotations.h"
14 #include "SkThread.h"
14 #include "SkInstCnt.h" 15 #include "SkInstCnt.h"
15 #include "SkTemplates.h" 16 #include "SkTemplates.h"
16 17
17 #include "../../src/core/SkThread.h"
18
19 /** \class SkRefCntBase 18 /** \class SkRefCntBase
20 19
21 SkRefCntBase is the base class for objects that may be shared by multiple 20 SkRefCntBase is the base class for objects that may be shared by multiple
22 objects. When an existing owner wants to share a reference, it calls ref(). 21 objects. When an existing owner wants to share a reference, it calls ref().
23 When an owner wants to release its reference, it calls unref(). When the 22 When an owner wants to release its reference, it calls unref(). When the
24 shared object's reference count goes to zero as the result of an unref() 23 shared object's reference count goes to zero as the result of an unref()
25 call, its (virtual) destructor is called. It is an error for the 24 call, its (virtual) destructor is called. It is an error for the
26 destructor to be called explicitly (or via the object going out of scope on 25 destructor to be called explicitly (or via the object going out of scope on
27 the stack or calling delete) if getRefCnt() > 1. 26 the stack or calling delete) if getRefCnt() > 1.
28 */ 27 */
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 typedef T* SkRefPtr::*unspecified_bool_type; 283 typedef T* SkRefPtr::*unspecified_bool_type;
285 operator unspecified_bool_type() const { 284 operator unspecified_bool_type() const {
286 return fObj ? &SkRefPtr::fObj : NULL; 285 return fObj ? &SkRefPtr::fObj : NULL;
287 } 286 }
288 287
289 private: 288 private:
290 T* fObj; 289 T* fObj;
291 }; 290 };
292 291
293 #endif 292 #endif
OLDNEW
« no previous file with comments | « include/core/SkOnce.h ('k') | include/core/SkThread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698