| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 const GLint TextureManagerTest::kMaxCubeMapLevels; | 140 const GLint TextureManagerTest::kMaxCubeMapLevels; |
| 141 const GLint TextureManagerTest::kMaxExternalLevels; | 141 const GLint TextureManagerTest::kMaxExternalLevels; |
| 142 const GLint TextureManagerTest::kMax3dLevels; | 142 const GLint TextureManagerTest::kMax3dLevels; |
| 143 #endif | 143 #endif |
| 144 | 144 |
| 145 class GLStreamTextureImageStub : public GLStreamTextureImage { | 145 class GLStreamTextureImageStub : public GLStreamTextureImage { |
| 146 public: | 146 public: |
| 147 GLStreamTextureImageStub() {} | 147 GLStreamTextureImageStub() {} |
| 148 | 148 |
| 149 // Overridden from GLImage: | 149 // Overridden from GLImage: |
| 150 void Destroy(bool have_context) override {} | |
| 151 gfx::Size GetSize() override { return gfx::Size(); } | 150 gfx::Size GetSize() override { return gfx::Size(); } |
| 152 unsigned GetInternalFormat() override { return 0; } | 151 unsigned GetInternalFormat() override { return 0; } |
| 153 bool BindTexImage(unsigned target) override { return false; } | 152 bool BindTexImage(unsigned target) override { return false; } |
| 154 void ReleaseTexImage(unsigned target) override {} | 153 void ReleaseTexImage(unsigned target) override {} |
| 155 bool CopyTexImage(unsigned target) override { return false; } | 154 bool CopyTexImage(unsigned target) override { return false; } |
| 156 bool CopyTexSubImage(unsigned target, | 155 bool CopyTexSubImage(unsigned target, |
| 157 const gfx::Point& offset, | 156 const gfx::Point& offset, |
| 158 const gfx::Rect& rect) override { | 157 const gfx::Rect& rect) override { |
| 159 return false; | 158 return false; |
| 160 } | 159 } |
| (...skipping 2533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2694 ExpectValid( | 2693 ExpectValid( |
| 2695 true, GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8, GL_DEPTH24_STENCIL8); | 2694 true, GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8, GL_DEPTH24_STENCIL8); |
| 2696 ExpectValid(true, GL_DEPTH_STENCIL, GL_FLOAT_32_UNSIGNED_INT_24_8_REV, | 2695 ExpectValid(true, GL_DEPTH_STENCIL, GL_FLOAT_32_UNSIGNED_INT_24_8_REV, |
| 2697 GL_DEPTH32F_STENCIL8); | 2696 GL_DEPTH32F_STENCIL8); |
| 2698 | 2697 |
| 2699 ExpectInvalid(true, GL_RGB_INTEGER, GL_INT, GL_RGBA8); | 2698 ExpectInvalid(true, GL_RGB_INTEGER, GL_INT, GL_RGBA8); |
| 2700 } | 2699 } |
| 2701 | 2700 |
| 2702 } // namespace gles2 | 2701 } // namespace gles2 |
| 2703 } // namespace gpu | 2702 } // namespace gpu |
| OLD | NEW |