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

Side by Side Diff: gpu/command_buffer/tests/texture_image_factory.cc

Issue 2999923002: Revert of Allow creating GLImage-backed textures with glTexStorage2D. (Closed)
Patch Set: rebase Created 3 years, 4 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/tests/texture_image_factory.h" 5 #include "gpu/command_buffer/tests/texture_image_factory.h"
6 6
7 #include "ui/gl/gl_bindings.h" 7 #include "ui/gl/gl_bindings.h"
8 #include "ui/gl/gl_image.h" 8 #include "ui/gl/gl_image.h"
9 9
10 namespace gpu { 10 namespace gpu {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 gfx::BufferFormat format, 57 gfx::BufferFormat format,
58 unsigned internalformat, 58 unsigned internalformat,
59 int client_id, 59 int client_id,
60 SurfaceHandle surface_handle) { 60 SurfaceHandle surface_handle) {
61 return nullptr; 61 return nullptr;
62 } 62 }
63 63
64 scoped_refptr<gl::GLImage> TextureImageFactory::CreateAnonymousImage( 64 scoped_refptr<gl::GLImage> TextureImageFactory::CreateAnonymousImage(
65 const gfx::Size& size, 65 const gfx::Size& size,
66 gfx::BufferFormat format, 66 gfx::BufferFormat format,
67 gfx::BufferUsage usage,
68 unsigned internalformat) { 67 unsigned internalformat) {
69 return new TextureImage(size); 68 return new TextureImage(size);
70 } 69 }
71 70
72 unsigned TextureImageFactory::RequiredTextureType() { 71 unsigned TextureImageFactory::RequiredTextureType() {
73 return required_texture_type_; 72 return required_texture_type_;
74 } 73 }
75 74
76 bool TextureImageFactory::SupportsFormatRGB() { 75 bool TextureImageFactory::SupportsFormatRGB() {
77 return false; 76 return false;
78 } 77 }
79 78
80 void TextureImageFactory::SetRequiredTextureType(unsigned type) { 79 void TextureImageFactory::SetRequiredTextureType(unsigned type) {
81 required_texture_type_ = type; 80 required_texture_type_ = type;
82 } 81 }
83 82
84 } // namespace gpu 83 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/tests/texture_image_factory.h ('k') | gpu/ipc/common/gpu_command_buffer_traits_multi.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698