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 "gpu/command_buffer/service/shader_manager.h" | 5 #include "gpu/command_buffer/service/shader_manager.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <utility> | 9 #include <utility> |
8 | 10 |
9 #include "base/logging.h" | 11 #include "base/logging.h" |
10 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
11 | 13 |
12 namespace gpu { | 14 namespace gpu { |
13 namespace gles2 { | 15 namespace gles2 { |
14 | 16 |
15 namespace { | 17 namespace { |
16 | 18 |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 | 352 |
351 void ShaderManager::UnuseShader(Shader* shader) { | 353 void ShaderManager::UnuseShader(Shader* shader) { |
352 DCHECK(shader); | 354 DCHECK(shader); |
353 DCHECK(IsOwned(shader)); | 355 DCHECK(IsOwned(shader)); |
354 shader->DecUseCount(); | 356 shader->DecUseCount(); |
355 RemoveShader(shader); | 357 RemoveShader(shader); |
356 } | 358 } |
357 | 359 |
358 } // namespace gles2 | 360 } // namespace gles2 |
359 } // namespace gpu | 361 } // namespace gpu |
OLD | NEW |