OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/texture_manager.h" | 5 #include "gpu/command_buffer/service/texture_manager.h" |
6 #include "base/bits.h" | 6 #include "base/bits.h" |
7 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 7 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
8 #include "gpu/command_buffer/service/feature_info.h" | 8 #include "gpu/command_buffer/service/feature_info.h" |
9 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 9 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
10 #include "gpu/GLES2/gles2_command_buffer.h" | |
11 | 10 |
12 namespace gpu { | 11 namespace gpu { |
13 namespace gles2 { | 12 namespace gles2 { |
14 | 13 |
15 static GLsizei ComputeMipMapCount( | 14 static GLsizei ComputeMipMapCount( |
16 GLsizei width, GLsizei height, GLsizei depth) { | 15 GLsizei width, GLsizei height, GLsizei depth) { |
17 return 1 + base::bits::Log2Floor(std::max(std::max(width, height), depth)); | 16 return 1 + base::bits::Log2Floor(std::max(std::max(width, height), depth)); |
18 } | 17 } |
19 | 18 |
20 static size_t GLTargetToFaceIndex(GLenum target) { | 19 static size_t GLTargetToFaceIndex(GLenum target) { |
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 return true; | 593 return true; |
595 } | 594 } |
596 } | 595 } |
597 return false; | 596 return false; |
598 } | 597 } |
599 | 598 |
600 } // namespace gles2 | 599 } // namespace gles2 |
601 } // namespace gpu | 600 } // namespace gpu |
602 | 601 |
603 | 602 |
OLD | NEW |