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

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

Issue 2449993005: Remove GLImage::Destroy(). (Closed)
Patch Set: One more Destroy() call on Mac. 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 const GLint TextureManagerTest::kMaxCubeMapLevels; 140 const GLint TextureManagerTest::kMaxCubeMapLevels;
141 const GLint TextureManagerTest::kMaxExternalLevels; 141 const GLint TextureManagerTest::kMaxExternalLevels;
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 void Destroy(bool have_context) override {}
151 gfx::Size GetSize() override { return gfx::Size(); } 150 gfx::Size GetSize() override { return gfx::Size(); }
152 unsigned GetInternalFormat() override { return 0; } 151 unsigned GetInternalFormat() override { return 0; }
153 bool BindTexImage(unsigned target) override { return false; } 152 bool BindTexImage(unsigned target) override { return false; }
154 void ReleaseTexImage(unsigned target) override {} 153 void ReleaseTexImage(unsigned target) override {}
155 bool CopyTexImage(unsigned target) override { return false; } 154 bool CopyTexImage(unsigned target) override { return false; }
156 bool CopyTexSubImage(unsigned target, 155 bool CopyTexSubImage(unsigned target,
157 const gfx::Point& offset, 156 const gfx::Point& offset,
158 const gfx::Rect& rect) override { 157 const gfx::Rect& rect) override {
159 return false; 158 return false;
160 } 159 }
(...skipping 2533 matching lines...) Expand 10 before | Expand all | Expand 10 after
2694 ExpectValid( 2693 ExpectValid(
2695 true, GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8, GL_DEPTH24_STENCIL8); 2694 true, GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8, GL_DEPTH24_STENCIL8);
2696 ExpectValid(true, GL_DEPTH_STENCIL, GL_FLOAT_32_UNSIGNED_INT_24_8_REV, 2695 ExpectValid(true, GL_DEPTH_STENCIL, GL_FLOAT_32_UNSIGNED_INT_24_8_REV,
2697 GL_DEPTH32F_STENCIL8); 2696 GL_DEPTH32F_STENCIL8);
2698 2697
2699 ExpectInvalid(true, GL_RGB_INTEGER, GL_INT, GL_RGBA8); 2698 ExpectInvalid(true, GL_RGB_INTEGER, GL_INT, GL_RGBA8);
2700 } 2699 }
2701 2700
2702 } // namespace gles2 2701 } // namespace gles2
2703 } // namespace gpu 2702 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/texture_definition.cc ('k') | gpu/command_buffer/tests/texture_image_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698