| OLD | NEW |
| (Empty) |
| 1 | |
| 2 /* | |
| 3 * Copyright 2010 Google Inc. | |
| 4 * | |
| 5 * Use of this source code is governed by a BSD-style license that can be | |
| 6 * found in the LICENSE file. | |
| 7 */ | |
| 8 | |
| 9 #ifndef GrNoncopyable_DEFINED | |
| 10 #define GrNoncopyable_DEFINED | |
| 11 | |
| 12 #include "GrTypes.h" | |
| 13 | |
| 14 /** | |
| 15 * Base for classes that want to disallow copying themselves. It makes its | |
| 16 * copy-constructor and assignment operators private (and unimplemented). | |
| 17 */ | |
| 18 class SK_API GrNoncopyable { | |
| 19 public: | |
| 20 GrNoncopyable() {} | |
| 21 | |
| 22 private: | |
| 23 // illegal | |
| 24 GrNoncopyable(const GrNoncopyable&); | |
| 25 GrNoncopyable& operator=(const GrNoncopyable&); | |
| 26 }; | |
| 27 | |
| 28 #endif | |
| OLD | NEW |