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

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

Issue 2241593003: [Command buffer] CopyTexSubImage3D: emulate unsized format in desktop core profile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [Command buffer] CopyTexSubImage3D: emulate unsized format in core profile Created 4 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 (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_COPY_TEX_IMAGE_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_COPY_TEX_IMAGE_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_COPY_TEX_IMAGE_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_COPY_TEX_IMAGE_H_
7 7
8 #include <array> 8 #include <array>
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 29 matching lines...) Expand all
40 GLenum luma_type, 40 GLenum luma_type,
41 GLint level, 41 GLint level,
42 GLenum internal_format, 42 GLenum internal_format,
43 GLint x, 43 GLint x,
44 GLint y, 44 GLint y,
45 GLsizei width, 45 GLsizei width,
46 GLsizei height, 46 GLsizei height,
47 GLuint source_framebuffer, 47 GLuint source_framebuffer,
48 GLenum source_framebuffer_internal_format); 48 GLenum source_framebuffer_internal_format);
49 49
50 void DoCopyTexSubImage2DToLUMAComatabilityTexture( 50 void DoCopyTexSubImageToLUMAComatabilityTexture(
Ken Russell (switch to Gerrit) 2016/08/17 23:27:00 zmo@ just fixed a couple of typos here.
yunchao 2016/08/22 14:57:20 Done.
51 const gles2::GLES2Decoder* decoder, 51 const gles2::GLES2Decoder* decoder,
52 GLuint dest_texture, 52 GLuint dest_texture,
53 GLenum dest_texture_target, 53 GLenum dest_texture_target,
54 GLenum dest_target, 54 GLenum dest_target,
55 GLenum luma_format, 55 GLenum luma_format,
56 GLenum luma_type, 56 GLenum luma_type,
57 GLint level, 57 GLint level,
58 GLint xoffset, 58 GLint xoffset,
59 GLint yoffset, 59 GLint yoffset,
60 GLint zoffset,
60 GLint x, 61 GLint x,
61 GLint y, 62 GLint y,
62 GLsizei width, 63 GLsizei width,
63 GLsizei height, 64 GLsizei height,
64 GLuint source_framebuffer, 65 GLuint source_framebuffer,
65 GLenum source_framebuffer_internal_format); 66 GLenum source_framebuffer_internal_format);
66 67
67 static bool CopyTexImageRequiresBlit(const gles2::FeatureInfo* feature_info, 68 static bool CopyTexImageRequiresBlit(const gles2::FeatureInfo* feature_info,
68 GLenum dest_texture_format); 69 GLenum dest_texture_format);
69 70
70 private: 71 private:
71 scoped_refptr<const gles2::FeatureInfo> feature_info_; 72 scoped_refptr<const gles2::FeatureInfo> feature_info_;
72 73
73 bool initialized_ = false; 74 bool initialized_ = false;
74 75
75 GLuint blit_program_ = 0; 76 GLuint blit_program_ = 0;
76 77
77 std::array<GLuint, 2> scratch_textures_ = {{0, 0}}; 78 std::array<GLuint, 2> scratch_textures_ = {{0, 0}};
78 GLuint scratch_fbo_ = 0; 79 GLuint scratch_fbo_ = 0;
79 80
80 GLuint vao_ = 0; 81 GLuint vao_ = 0;
81 82
82 DISALLOW_COPY_AND_ASSIGN(CopyTexImageResourceManager); 83 DISALLOW_COPY_AND_ASSIGN(CopyTexImageResourceManager);
83 }; 84 };
84 85
85 } // namespace gpu. 86 } // namespace gpu.
86 87
87 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_COPY_TEX_IMAGE_H_ 88 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_COPY_TEX_IMAGE_H_
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_copy_tex_image.cc » ('j') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698