OLD | NEW |
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 #include <map> | 5 #include <map> |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "../client/program_info_manager.h" | 8 #include "gpu/command_buffer/client/atomicops.h" |
9 #include "../client/atomicops.h" | 9 #include "gpu/command_buffer/client/gles2_implementation.h" |
10 #include "../client/gles2_implementation.h" | 10 #include "gpu/command_buffer/client/program_info_manager.h" |
11 #include "../common/gles2_cmd_utils.h" | 11 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
12 | 12 |
13 namespace gpu { | 13 namespace gpu { |
14 namespace gles2 { | 14 namespace gles2 { |
15 | 15 |
16 class NonCachedProgramInfoManager : public ProgramInfoManager { | 16 class NonCachedProgramInfoManager : public ProgramInfoManager { |
17 public: | 17 public: |
18 NonCachedProgramInfoManager(); | 18 NonCachedProgramInfoManager(); |
19 virtual ~NonCachedProgramInfoManager(); | 19 virtual ~NonCachedProgramInfoManager(); |
20 | 20 |
21 virtual void CreateInfo(GLuint program) OVERRIDE; | 21 virtual void CreateInfo(GLuint program) OVERRIDE; |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 if (shared_resources_across_processes) { | 514 if (shared_resources_across_processes) { |
515 return new NonCachedProgramInfoManager(); | 515 return new NonCachedProgramInfoManager(); |
516 } else { | 516 } else { |
517 return new CachedProgramInfoManager(); | 517 return new CachedProgramInfoManager(); |
518 } | 518 } |
519 } | 519 } |
520 | 520 |
521 } // namespace gles2 | 521 } // namespace gles2 |
522 } // namespace gpu | 522 } // namespace gpu |
523 | 523 |
OLD | NEW |