Upload upstream chromium 114.0.5735.31
[platform/framework/web/chromium-efl.git] / skia / config / sk_ref_cnt_ext_release.h
1 // Copyright 2013 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SKIA_CONFIG_SK_REF_CNT_EXT_RELEASE_H_
6 #define SKIA_CONFIG_SK_REF_CNT_EXT_RELEASE_H_
7
8 #ifdef SKIA_CONFIG_SK_REF_CNT_EXT_DEBUG_H_
9 #error Only one SkRefCnt should be used.
10 #endif
11
12 // Alternate implementation of SkRefCnt for Chromium release builds
13 class SK_API SkRefCnt : public SkRefCntBase {
14 public:
15   void deref() const { SkRefCntBase::unref(); }
16 };
17
18 namespace WTF {
19 inline void Adopted(const SkRefCnt* object) {}
20 inline void RequireAdoption(const SkRefCnt* object) {}
21 }  // namespace WTF
22
23 using WTF::Adopted;
24 using WTF::RequireAdoption;
25
26 #endif  // SKIA_CONFIG_SK_REF_CNT_EXT_RELEASE_H_