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

Side by Side Diff: gpu/command_buffer/service/image_factory.h

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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef GPU_COMMAND_BUFFER_SERVICE_IMAGE_FACTORY_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_IMAGE_FACTORY_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_IMAGE_FACTORY_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_IMAGE_FACTORY_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "gpu/gpu_export.h" 9 #include "gpu/gpu_export.h"
10 #include "gpu/ipc/common/surface_handle.h" 10 #include "gpu/ipc/common/surface_handle.h"
(...skipping 19 matching lines...) Expand all
30 gfx::BufferFormat format, 30 gfx::BufferFormat format,
31 unsigned internalformat, 31 unsigned internalformat,
32 int client_id, 32 int client_id,
33 SurfaceHandle surface_handle) = 0; 33 SurfaceHandle surface_handle) = 0;
34 34
35 // Create an anonymous GLImage backed by a GpuMemoryBuffer that doesn't have a 35 // Create an anonymous GLImage backed by a GpuMemoryBuffer that doesn't have a
36 // client_id. It can't be passed to other processes. 36 // client_id. It can't be passed to other processes.
37 virtual scoped_refptr<gl::GLImage> CreateAnonymousImage( 37 virtual scoped_refptr<gl::GLImage> CreateAnonymousImage(
38 const gfx::Size& size, 38 const gfx::Size& size,
39 gfx::BufferFormat format, 39 gfx::BufferFormat format,
40 gfx::BufferUsage usage,
41 unsigned internalformat); 40 unsigned internalformat);
42 41
43 // An image can only be bound to a texture with the appropriate type. 42 // An image can only be bound to a texture with the appropriate type.
44 virtual unsigned RequiredTextureType(); 43 virtual unsigned RequiredTextureType();
45 44
46 // Whether a created image can have format GL_RGB. 45 // Whether a created image can have format GL_RGB.
47 virtual bool SupportsFormatRGB(); 46 virtual bool SupportsFormatRGB();
48 47
49 protected: 48 protected:
50 virtual ~ImageFactory(); 49 virtual ~ImageFactory();
51 }; 50 };
52 51
53 } // namespace gpu 52 } // namespace gpu
54 53
55 #endif // GPU_COMMAND_BUFFER_SERVICE_IMAGE_FACTORY_H_ 54 #endif // GPU_COMMAND_BUFFER_SERVICE_IMAGE_FACTORY_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_validation_implementation_autogen.h ('k') | gpu/command_buffer/service/image_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698