| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 gfx::OverlayTransform transform, | 165 gfx::OverlayTransform transform, |
| 166 const gfx::Rect& bounds_rect, | 166 const gfx::Rect& bounds_rect, |
| 167 const gfx::RectF& crop_rect) override { | 167 const gfx::RectF& crop_rect) override { |
| 168 return false; | 168 return false; |
| 169 } | 169 } |
| 170 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, | 170 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, |
| 171 uint64_t process_tracing_id, | 171 uint64_t process_tracing_id, |
| 172 const std::string& dump_name) override {} | 172 const std::string& dump_name) override {} |
| 173 bool EmulatingRGB() const override { return false; } | 173 bool EmulatingRGB() const override { return false; } |
| 174 void GetTextureMatrix(float matrix[16]) override {} | 174 void GetTextureMatrix(float matrix[16]) override {} |
| 175 void Flush() override {} |
| 175 | 176 |
| 176 protected: | 177 protected: |
| 177 ~GLStreamTextureImageStub() override {} | 178 ~GLStreamTextureImageStub() override {} |
| 178 }; | 179 }; |
| 179 | 180 |
| 180 TEST_F(TextureManagerTest, Basic) { | 181 TEST_F(TextureManagerTest, Basic) { |
| 181 const GLuint kClient1Id = 1; | 182 const GLuint kClient1Id = 1; |
| 182 const GLuint kService1Id = 11; | 183 const GLuint kService1Id = 11; |
| 183 const GLuint kClient2Id = 2; | 184 const GLuint kClient2Id = 2; |
| 184 EXPECT_FALSE(manager_->HaveUnsafeTextures()); | 185 EXPECT_FALSE(manager_->HaveUnsafeTextures()); |
| (...skipping 2560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2745 ExpectValid( | 2746 ExpectValid( |
| 2746 true, GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8, GL_DEPTH24_STENCIL8); | 2747 true, GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8, GL_DEPTH24_STENCIL8); |
| 2747 ExpectValid(true, GL_DEPTH_STENCIL, GL_FLOAT_32_UNSIGNED_INT_24_8_REV, | 2748 ExpectValid(true, GL_DEPTH_STENCIL, GL_FLOAT_32_UNSIGNED_INT_24_8_REV, |
| 2748 GL_DEPTH32F_STENCIL8); | 2749 GL_DEPTH32F_STENCIL8); |
| 2749 | 2750 |
| 2750 ExpectInvalid(true, GL_RGB_INTEGER, GL_INT, GL_RGBA8); | 2751 ExpectInvalid(true, GL_RGB_INTEGER, GL_INT, GL_RGBA8); |
| 2751 } | 2752 } |
| 2752 | 2753 |
| 2753 } // namespace gles2 | 2754 } // namespace gles2 |
| 2754 } // namespace gpu | 2755 } // namespace gpu |
| OLD | NEW |