Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: gpu/command_buffer/service/context_group.h

Issue 169403005: command_buffer: Implement path rendering functions for CHROMIUM_path_rendering (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nv-pr-02-texgen
Patch Set: rebase and cleanup ids Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 13 matching lines...) Expand all
24 class TransferBufferManagerInterface; 24 class TransferBufferManagerInterface;
25 25
26 namespace gles2 { 26 namespace gles2 {
27 27
28 class ProgramCache; 28 class ProgramCache;
29 class BufferManager; 29 class BufferManager;
30 class GLES2Decoder; 30 class GLES2Decoder;
31 class FramebufferManager; 31 class FramebufferManager;
32 class MailboxManager; 32 class MailboxManager;
33 class RenderbufferManager; 33 class RenderbufferManager;
34 class PathManager;
34 class ProgramManager; 35 class ProgramManager;
35 class ShaderManager; 36 class ShaderManager;
36 class TextureManager; 37 class TextureManager;
37 class MemoryTracker; 38 class MemoryTracker;
38 struct DisallowedFeatures; 39 struct DisallowedFeatures;
39 40
40 // A Context Group helps manage multiple GLES2Decoders that share 41 // A Context Group helps manage multiple GLES2Decoders that share
41 // resources. 42 // resources.
42 class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> { 43 class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> {
43 public: 44 public:
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 } 124 }
124 125
125 RenderbufferManager* renderbuffer_manager() const { 126 RenderbufferManager* renderbuffer_manager() const {
126 return renderbuffer_manager_.get(); 127 return renderbuffer_manager_.get();
127 } 128 }
128 129
129 TextureManager* texture_manager() const { 130 TextureManager* texture_manager() const {
130 return texture_manager_.get(); 131 return texture_manager_.get();
131 } 132 }
132 133
134 PathManager* path_manager() const { return path_manager_.get(); }
135
133 ProgramManager* program_manager() const { 136 ProgramManager* program_manager() const {
134 return program_manager_.get(); 137 return program_manager_.get();
135 } 138 }
136 139
137 bool has_program_cache() const { 140 bool has_program_cache() const {
138 return program_cache_ != NULL; 141 return program_cache_ != NULL;
139 } 142 }
140 143
141 void set_program_cache(ProgramCache* program_cache) { 144 void set_program_cache(ProgramCache* program_cache) {
142 program_cache_ = program_cache; 145 program_cache_ = program_cache;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 ProgramCache* program_cache_; 197 ProgramCache* program_cache_;
195 198
196 scoped_ptr<BufferManager> buffer_manager_; 199 scoped_ptr<BufferManager> buffer_manager_;
197 200
198 scoped_ptr<FramebufferManager> framebuffer_manager_; 201 scoped_ptr<FramebufferManager> framebuffer_manager_;
199 202
200 scoped_ptr<RenderbufferManager> renderbuffer_manager_; 203 scoped_ptr<RenderbufferManager> renderbuffer_manager_;
201 204
202 scoped_ptr<TextureManager> texture_manager_; 205 scoped_ptr<TextureManager> texture_manager_;
203 206
207 scoped_ptr<PathManager> path_manager_;
208
204 scoped_ptr<ProgramManager> program_manager_; 209 scoped_ptr<ProgramManager> program_manager_;
205 210
206 scoped_ptr<ShaderManager> shader_manager_; 211 scoped_ptr<ShaderManager> shader_manager_;
207 212
208 scoped_refptr<FeatureInfo> feature_info_; 213 scoped_refptr<FeatureInfo> feature_info_;
209 214
210 std::vector<base::WeakPtr<gles2::GLES2Decoder> > decoders_; 215 std::vector<base::WeakPtr<gles2::GLES2Decoder> > decoders_;
211 216
212 GLenum draw_buffer_; 217 GLenum draw_buffer_;
213 218
214 DISALLOW_COPY_AND_ASSIGN(ContextGroup); 219 DISALLOW_COPY_AND_ASSIGN(ContextGroup);
215 }; 220 };
216 221
217 } // namespace gles2 222 } // namespace gles2
218 } // namespace gpu 223 } // namespace gpu
219 224
220 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ 225 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_
221 226
222 227
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698