OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2014 Google Inc. | 3 * Copyright 2014 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #ifndef GrGLNameAllocator_DEFINED | 9 #ifndef GrGLNameAllocator_DEFINED |
10 #define GrGLNameAllocator_DEFINED | 10 #define GrGLNameAllocator_DEFINED |
11 | 11 |
12 #include "SkRefCnt.h" | 12 #include "SkRefCnt.h" |
13 #include "gl/GrGLFunctions.h" | 13 #include "gl/GrGLTypes.h" |
14 | 14 |
15 /** | 15 /** |
16 * This class assumes ownership of an explicit range of OpenGL object names and | 16 * This class assumes ownership of an explicit range of OpenGL object names and |
17 * manages allocations within that range. This allows the app to generate new | 17 * manages allocations within that range. This allows the app to generate new |
18 * objects on the client side without making round trips to the GL server. | 18 * objects on the client side without making round trips to the GL server. |
19 */ | 19 */ |
20 class GrGLNameAllocator { | 20 class GrGLNameAllocator { |
21 public: | 21 public: |
22 /** | 22 /** |
23 * Constructs a name allocator that produces names within the explicit | 23 * Constructs a name allocator that produces names within the explicit |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 class SparseNameRange; | 77 class SparseNameRange; |
78 class SparseNameTree; | 78 class SparseNameTree; |
79 class ContiguousNameRange; | 79 class ContiguousNameRange; |
80 | 80 |
81 const GrGLuint fFirstName; | 81 const GrGLuint fFirstName; |
82 const GrGLuint fEndName; | 82 const GrGLuint fEndName; |
83 SkAutoTUnref<SparseNameRange> fAllocatedNames; | 83 SkAutoTUnref<SparseNameRange> fAllocatedNames; |
84 }; | 84 }; |
85 | 85 |
86 #endif | 86 #endif |
OLD | NEW |