Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: gpu/command_buffer/service/texture_manager_unittest.cc

Issue 2388653002: gpu: Add CHROMIUM_texture_from_image spec and fence support.
Patch Set: rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/texture_definition.cc ('k') | gpu/command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698