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

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, 2 months 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 #endif 147 #endif
148 148
149 class GLStreamTextureImageStub : public GLStreamTextureImage { 149 class GLStreamTextureImageStub : public GLStreamTextureImage {
150 public: 150 public:
151 GLStreamTextureImageStub() {} 151 GLStreamTextureImageStub() {}
152 152
153 // Overridden from GLImage: 153 // Overridden from GLImage:
154 void Destroy(bool have_context) override {} 154 void Destroy(bool have_context) override {}
155 gfx::Size GetSize() override { return gfx::Size(); } 155 gfx::Size GetSize() override { return gfx::Size(); }
156 unsigned GetInternalFormat() override { return 0; } 156 unsigned GetInternalFormat() override { return 0; }
157 bool BindTexImage(unsigned target) override { return false; } 157 bool BindTexImage(unsigned target, gl::GLFence* fence) override {
158 return false;
159 }
158 void ReleaseTexImage(unsigned target) override {} 160 void ReleaseTexImage(unsigned target) override {}
159 bool CopyTexImage(unsigned target) override { return false; } 161 bool CopyTexImage(unsigned target) override { return false; }
160 bool CopyTexSubImage(unsigned target, 162 bool CopyTexSubImage(unsigned target,
161 const gfx::Point& offset, 163 const gfx::Point& offset,
162 const gfx::Rect& rect) override { 164 const gfx::Rect& rect) override {
163 return false; 165 return false;
164 } 166 }
165 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 167 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
166 int z_order, 168 int z_order,
167 gfx::OverlayTransform transform, 169 gfx::OverlayTransform transform,
(...skipping 2600 matching lines...) Expand 10 before | Expand all | Expand 10 after
2768 ExpectValid( 2770 ExpectValid(
2769 true, GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8, GL_DEPTH24_STENCIL8); 2771 true, GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8, GL_DEPTH24_STENCIL8);
2770 ExpectValid(true, GL_DEPTH_STENCIL, GL_FLOAT_32_UNSIGNED_INT_24_8_REV, 2772 ExpectValid(true, GL_DEPTH_STENCIL, GL_FLOAT_32_UNSIGNED_INT_24_8_REV,
2771 GL_DEPTH32F_STENCIL8); 2773 GL_DEPTH32F_STENCIL8);
2772 2774
2773 ExpectInvalid(true, GL_RGB_INTEGER, GL_INT, GL_RGBA8); 2775 ExpectInvalid(true, GL_RGB_INTEGER, GL_INT, GL_RGBA8);
2774 } 2776 }
2775 2777
2776 } // namespace gles2 2778 } // namespace gles2
2777 } // namespace gpu 2779 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698