| 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 GrGLSLProgramDataManager_DEFINED | 8 #ifndef GrGLSLProgramDataManager_DEFINED |
| 9 #define GrGLSLProgramDataManager_DEFINED | 9 #define GrGLSLProgramDataManager_DEFINED |
| 10 | 10 |
| 11 #include "SkTypes.h" | 11 #include "SkTypes.h" |
| 12 | 12 |
| 13 class SkMatrix; |
| 14 |
| 13 /** Manages the resources used by a shader program. | 15 /** Manages the resources used by a shader program. |
| 14 * The resources are objects the program uses to communicate with the | 16 * The resources are objects the program uses to communicate with the |
| 15 * application code. | 17 * application code. |
| 16 */ | 18 */ |
| 17 class GrGLSLProgramDataManager : SkNoncopyable { | 19 class GrGLSLProgramDataManager : SkNoncopyable { |
| 18 public: | 20 public: |
| 19 // Opaque handle to a resource | 21 // Opaque handle to a resource |
| 20 class ShaderResourceHandle { | 22 class ShaderResourceHandle { |
| 21 public: | 23 public: |
| 22 ShaderResourceHandle(int value) | 24 ShaderResourceHandle(int value) |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 71 |
| 70 protected: | 72 protected: |
| 71 GrGLSLProgramDataManager() {} | 73 GrGLSLProgramDataManager() {} |
| 72 | 74 |
| 73 private: | 75 private: |
| 74 | 76 |
| 75 typedef SkNoncopyable INHERITED; | 77 typedef SkNoncopyable INHERITED; |
| 76 }; | 78 }; |
| 77 | 79 |
| 78 #endif | 80 #endif |
| OLD | NEW |