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

Side by Side Diff: skia/config/sk_ref_cnt_ext_release.h

Issue 1691073002: Add plumbing in blink to allow overriding the skia font manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge to head Created 4 years, 10 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SK_REF_CNT_EXT_RELEASE_H_ 5 #ifndef SK_REF_CNT_EXT_RELEASE_H_
6 #define SK_REF_CNT_EXT_RELEASE_H_ 6 #define SK_REF_CNT_EXT_RELEASE_H_
7 7
8 #ifdef SK_REF_CNT_EXT_DEBUG_H_ 8 #ifdef SK_REF_CNT_EXT_DEBUG_H_
9 #error Only one SkRefCnt should be used. 9 #error Only one SkRefCnt should be used.
10 #endif 10 #endif
11 11
12 // Alternate implementation of SkRefCnt for Chromium release builds 12 // Alternate implementation of SkRefCnt for Chromium release builds
13 class SK_API SkRefCnt : public SkRefCntBase { 13 class SK_API SkRefCnt : public SkRefCntBase {
14 public: 14 public:
15 void deref() const { SkRefCntBase::unref(); } 15 void deref() const { SkRefCntBase::unref(); }
16 }; 16 };
17 17
18 namespace WTF {
bungeman-skia 2016/02/12 15:45:11 Is there a reason for adding any of this? WTF::ado
Ilya Kulshin 2016/02/12 20:47:10 I don't want to force callers to rely on a differe
19 inline void adopted(const SkRefCnt* object) {}
20 inline void requireAdoption(const SkRefCnt* object) {}
21 };
22
23 using WTF::adopted;
bungeman-skia 2016/02/12 15:45:11 Are these needed? I would prefer these be removed
Ilya Kulshin 2016/02/12 20:47:10 I tried removing them, but that caused a bunch of
24 using WTF::requireAdoption;
25
18 #endif 26 #endif
19 27
OLDNEW
« no previous file with comments | « skia/config/sk_ref_cnt_ext_debug.h ('k') | third_party/WebKit/Source/platform/fonts/FontCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698