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

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

Issue 1176523002: Code style fix. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | gpu/command_buffer/service/context_group.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 27 matching lines...) Expand all
38 class SubscriptionRefSet; 38 class SubscriptionRefSet;
39 class ValuebufferManager; 39 class ValuebufferManager;
40 class MemoryTracker; 40 class MemoryTracker;
41 struct DisallowedFeatures; 41 struct DisallowedFeatures;
42 42
43 // A Context Group helps manage multiple GLES2Decoders that share 43 // A Context Group helps manage multiple GLES2Decoders that share
44 // resources. 44 // resources.
45 class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> { 45 class GPU_EXPORT ContextGroup : public base::RefCounted<ContextGroup> {
46 public: 46 public:
47 enum ContextType { 47 enum ContextType {
48 kContextTypeWebGL1, 48 CONTEXT_TYPE_WEBGL1,
49 kContextTypeWebGL2, 49 CONTEXT_TYPE_WEBGL2,
50 kContextTypeOther, 50 CONTEXT_TYPE_OTHER,
51 kContextTypeUndefined 51 CONTEXT_TYPE_UNDEFINED
52 }; 52 };
53 53
54 static ContextType GetContextType(unsigned webgl_version); 54 static ContextType GetContextType(unsigned webgl_version);
55 55
56 ContextGroup( 56 ContextGroup(
57 const scoped_refptr<MailboxManager>& mailbox_manager, 57 const scoped_refptr<MailboxManager>& mailbox_manager,
58 const scoped_refptr<MemoryTracker>& memory_tracker, 58 const scoped_refptr<MemoryTracker>& memory_tracker,
59 const scoped_refptr<ShaderTranslatorCache>& shader_translator_cache, 59 const scoped_refptr<ShaderTranslatorCache>& shader_translator_cache,
60 const scoped_refptr<FeatureInfo>& feature_info, 60 const scoped_refptr<FeatureInfo>& feature_info,
61 const scoped_refptr<SubscriptionRefSet>& subscription_ref_set, 61 const scoped_refptr<SubscriptionRefSet>& subscription_ref_set,
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 310
311 DISALLOW_COPY_AND_ASSIGN(ContextGroup); 311 DISALLOW_COPY_AND_ASSIGN(ContextGroup);
312 }; 312 };
313 313
314 } // namespace gles2 314 } // namespace gles2
315 } // namespace gpu 315 } // namespace gpu
316 316
317 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ 317 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_
318 318
319 319
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/context_group.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698