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/texture_manager.h" | 5 #include "gpu/command_buffer/service/texture_manager.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 1696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1707 current_size_[pool] += new_size - old_size; | 1707 current_size_[pool] += new_size - old_size; |
1708 } | 1708 } |
1709 | 1709 |
1710 bool EnsureGPUMemoryAvailable(size_t size_needed) override { return true; } | 1710 bool EnsureGPUMemoryAvailable(size_t size_needed) override { return true; } |
1711 | 1711 |
1712 size_t GetSize(Pool pool) { | 1712 size_t GetSize(Pool pool) { |
1713 DCHECK_LT(static_cast<size_t>(pool), arraysize(current_size_)); | 1713 DCHECK_LT(static_cast<size_t>(pool), arraysize(current_size_)); |
1714 return current_size_[pool]; | 1714 return current_size_[pool]; |
1715 } | 1715 } |
1716 | 1716 |
| 1717 uint64_t ClientTracingId() override { return 0; } |
| 1718 |
1717 private: | 1719 private: |
1718 ~CountingMemoryTracker() override {} | 1720 ~CountingMemoryTracker() override {} |
1719 | 1721 |
1720 size_t current_size_[2]; | 1722 size_t current_size_[2]; |
1721 DISALLOW_COPY_AND_ASSIGN(CountingMemoryTracker); | 1723 DISALLOW_COPY_AND_ASSIGN(CountingMemoryTracker); |
1722 }; | 1724 }; |
1723 | 1725 |
1724 class SharedTextureTest : public GpuServiceTest { | 1726 class SharedTextureTest : public GpuServiceTest { |
1725 public: | 1727 public: |
1726 static const bool kUseDefaultTextures = false; | 1728 static const bool kUseDefaultTextures = false; |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2244 ExpectValid(GL_DEPTH_COMPONENT, GL_FLOAT, GL_DEPTH_COMPONENT32F); | 2246 ExpectValid(GL_DEPTH_COMPONENT, GL_FLOAT, GL_DEPTH_COMPONENT32F); |
2245 ExpectValid(GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8, GL_DEPTH24_STENCIL8); | 2247 ExpectValid(GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8, GL_DEPTH24_STENCIL8); |
2246 ExpectValid(GL_DEPTH_STENCIL, GL_FLOAT_32_UNSIGNED_INT_24_8_REV, | 2248 ExpectValid(GL_DEPTH_STENCIL, GL_FLOAT_32_UNSIGNED_INT_24_8_REV, |
2247 GL_DEPTH32F_STENCIL8); | 2249 GL_DEPTH32F_STENCIL8); |
2248 | 2250 |
2249 ExpectInvalid(GL_RGB_INTEGER, GL_INT, GL_RGBA8); | 2251 ExpectInvalid(GL_RGB_INTEGER, GL_INT, GL_RGBA8); |
2250 } | 2252 } |
2251 | 2253 |
2252 } // namespace gles2 | 2254 } // namespace gles2 |
2253 } // namespace gpu | 2255 } // namespace gpu |
OLD | NEW |