| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 gfx::Size GetSize() override { return gfx::Size(); } | 150 gfx::Size GetSize() override { return gfx::Size(); } |
| 151 unsigned GetInternalFormat() override { return 0; } | 151 unsigned GetInternalFormat() override { return 0; } |
| 152 bool BindTexImage(unsigned target) override { return false; } | 152 bool BindTexImage(unsigned target, gl::GLFence* fence) override { |
| 153 return false; |
| 154 } |
| 153 void ReleaseTexImage(unsigned target) override {} | 155 void ReleaseTexImage(unsigned target) override {} |
| 154 bool CopyTexImage(unsigned target) override { return false; } | 156 bool CopyTexImage(unsigned target) override { return false; } |
| 155 bool CopyTexSubImage(unsigned target, | 157 bool CopyTexSubImage(unsigned target, |
| 156 const gfx::Point& offset, | 158 const gfx::Point& offset, |
| 157 const gfx::Rect& rect) override { | 159 const gfx::Rect& rect) override { |
| 158 return false; | 160 return false; |
| 159 } | 161 } |
| 160 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 162 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
| 161 int z_order, | 163 int z_order, |
| 162 gfx::OverlayTransform transform, | 164 gfx::OverlayTransform transform, |
| (...skipping 2530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2693 ExpectValid( | 2695 ExpectValid( |
| 2694 true, GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8, GL_DEPTH24_STENCIL8); | 2696 true, GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8, GL_DEPTH24_STENCIL8); |
| 2695 ExpectValid(true, GL_DEPTH_STENCIL, GL_FLOAT_32_UNSIGNED_INT_24_8_REV, | 2697 ExpectValid(true, GL_DEPTH_STENCIL, GL_FLOAT_32_UNSIGNED_INT_24_8_REV, |
| 2696 GL_DEPTH32F_STENCIL8); | 2698 GL_DEPTH32F_STENCIL8); |
| 2697 | 2699 |
| 2698 ExpectInvalid(true, GL_RGB_INTEGER, GL_INT, GL_RGBA8); | 2700 ExpectInvalid(true, GL_RGB_INTEGER, GL_INT, GL_RGBA8); |
| 2699 } | 2701 } |
| 2700 | 2702 |
| 2701 } // namespace gles2 | 2703 } // namespace gles2 |
| 2702 } // namespace gpu | 2704 } // namespace gpu |
| OLD | NEW |