OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #ifndef GrProcessorDataManager_DEFINED | 8 #ifndef GrProcessorDataManager_DEFINED |
9 #define GrProcessorDataManager_DEFINED | 9 #define GrProcessorDataManager_DEFINED |
10 | 10 |
11 class GrProcessorDataManager {}; | 11 #include "SkRefCnt.h" |
| 12 |
| 13 class GrProcessorDataManager : public SkRefCnt { |
| 14 public: |
| 15 GrProcessorDataManager() {} |
| 16 GrProcessorDataManager(const GrProcessorDataManager& procDataManager) {} |
| 17 |
| 18 void* operator new(size_t size); |
| 19 void operator delete(void* target); |
| 20 |
| 21 void* operator new(size_t size, void* placement) { |
| 22 return ::operator new(size, placement); |
| 23 } |
| 24 void operator delete(void* target, void* placement) { |
| 25 ::operator delete(target, placement); |
| 26 } |
| 27 |
| 28 private: |
| 29 typedef SkRefCnt INHERITED; |
| 30 }; |
12 | 31 |
13 #endif | 32 #endif |
OLD | NEW |