Chromium Code Reviews| 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 #include "SkRefCnt.h" | 11 #include "SkRefCnt.h" |
| 12 | 12 |
| 13 class GrProcessorDataManager : public SkRefCnt { | 13 class GrProcessorDataManager : public SkRefCnt { |
| 14 public: | 14 public: |
| 15 GrProcessorDataManager() {} | 15 GrProcessorDataManager() {} |
| 16 GrProcessorDataManager(const GrProcessorDataManager& procDataManager) {} | 16 GrProcessorDataManager(const GrProcessorDataManager& procDataManager) {} |
| 17 | 17 |
| 18 void* operator new(size_t size); | 18 void* operator new(size_t size); |
| 19 void operator delete(void* target); | 19 void operator delete(void* target); |
| 20 | 20 |
| 21 void* operator new(size_t size, void* placement) { | 21 void* operator new(size_t size, void* placement) { |
| 22 return ::operator new(size, placement); | 22 return ::operator new(size, placement); |
| 23 } | 23 } |
| 24 void operator delete(void* target, void* placement) { | 24 void operator delete(void* target, void* placement) { |
| 25 ::operator delete(target, placement); | 25 ::operator delete(target, placement); |
| 26 } | 26 } |
| 27 | 27 |
| 28 private: | 28 private: |
|
robertphillips
2015/07/10 14:34:09
I'm not crazy about 'height' here
| |
| 29 uint32_t currentHeight() const { return 0; } | |
| 30 void restoreHeight(uint32_t height) {} | |
| 31 | |
| 32 // For GrPipelineBuilder::AutoRestoreProcessorDataManager | |
| 33 friend class GrPipelineBuilder; | |
| 34 | |
| 29 typedef SkRefCnt INHERITED; | 35 typedef SkRefCnt INHERITED; |
| 30 }; | 36 }; |
| 31 | 37 |
| 32 #endif | 38 #endif |
| OLD | NEW |