| 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 <utility> | 10 #include <utility> |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 159 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
| 160 int z_order, | 160 int z_order, |
| 161 gfx::OverlayTransform transform, | 161 gfx::OverlayTransform transform, |
| 162 const gfx::Rect& bounds_rect, | 162 const gfx::Rect& bounds_rect, |
| 163 const gfx::RectF& crop_rect) override { | 163 const gfx::RectF& crop_rect) override { |
| 164 return false; | 164 return false; |
| 165 } | 165 } |
| 166 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, | 166 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, |
| 167 uint64_t process_tracing_id, | 167 uint64_t process_tracing_id, |
| 168 const std::string& dump_name) override {} | 168 const std::string& dump_name) override {} |
| 169 bool EmulatingRGB() const override { return false; } |
| 169 void GetTextureMatrix(float matrix[16]) override {} | 170 void GetTextureMatrix(float matrix[16]) override {} |
| 170 | 171 |
| 171 protected: | 172 protected: |
| 172 ~GLStreamTextureImageStub() override {} | 173 ~GLStreamTextureImageStub() override {} |
| 173 }; | 174 }; |
| 174 | 175 |
| 175 TEST_F(TextureManagerTest, Basic) { | 176 TEST_F(TextureManagerTest, Basic) { |
| 176 const GLuint kClient1Id = 1; | 177 const GLuint kClient1Id = 1; |
| 177 const GLuint kService1Id = 11; | 178 const GLuint kService1Id = 11; |
| 178 const GLuint kClient2Id = 2; | 179 const GLuint kClient2Id = 2; |
| (...skipping 2493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2672 ExpectValid( | 2673 ExpectValid( |
| 2673 true, GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8, GL_DEPTH24_STENCIL8); | 2674 true, GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8, GL_DEPTH24_STENCIL8); |
| 2674 ExpectValid(true, GL_DEPTH_STENCIL, GL_FLOAT_32_UNSIGNED_INT_24_8_REV, | 2675 ExpectValid(true, GL_DEPTH_STENCIL, GL_FLOAT_32_UNSIGNED_INT_24_8_REV, |
| 2675 GL_DEPTH32F_STENCIL8); | 2676 GL_DEPTH32F_STENCIL8); |
| 2676 | 2677 |
| 2677 ExpectInvalid(true, GL_RGB_INTEGER, GL_INT, GL_RGBA8); | 2678 ExpectInvalid(true, GL_RGB_INTEGER, GL_INT, GL_RGBA8); |
| 2678 } | 2679 } |
| 2679 | 2680 |
| 2680 } // namespace gles2 | 2681 } // namespace gles2 |
| 2681 } // namespace gpu | 2682 } // namespace gpu |
| OLD | NEW |