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

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

Issue 13620008: Enable 2D Canvas painting for Chrome on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 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 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_COPY_TEXTURE_CHROMIUM_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_COPY_TEXTURE_CHROMIUM_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_COPY_TEXTURE_CHROMIUM_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_COPY_TEXTURE_CHROMIUM_H_
7 7
8 #include "gpu/command_buffer/service/gl_utils.h" 8 #include "gpu/command_buffer/service/gl_utils.h"
9 #include "gpu/gpu_export.h" 9 #include "gpu/gpu_export.h"
10 10
(...skipping 13 matching lines...) Expand all
24 24
25 void Initialize(const gles2::GLES2Decoder* decoder); 25 void Initialize(const gles2::GLES2Decoder* decoder);
26 void Destroy(); 26 void Destroy();
27 27
28 void DoCopyTexture(const gles2::GLES2Decoder* decoder, GLenum source_target, 28 void DoCopyTexture(const gles2::GLES2Decoder* decoder, GLenum source_target,
29 GLenum dest_target, GLuint source_id, GLuint dest_id, 29 GLenum dest_target, GLuint source_id, GLuint dest_id,
30 GLint level, GLsizei width, GLsizei height, 30 GLint level, GLsizei width, GLsizei height,
31 bool flip_y, bool premultiply_alpha, 31 bool flip_y, bool premultiply_alpha,
32 bool unpremultiply_alpha); 32 bool unpremultiply_alpha);
33 33
34 // This will apply a transform on the source texture before copying to
35 // destination texture.
36 void DoCopyTextureWithTransform(const gles2::GLES2Decoder* decoder,
37 GLenum source_target, GLenum dest_target,
fgalligan1 2013/04/04 20:38:10 Indentation is off. Either line up with "(" or 4 s
hkuang 2013/04/04 22:56:45 Done.
38 GLuint source_id, GLuint dest_id, GLint level,
39 GLsizei width, GLsizei height, bool flip_y,
40 bool premultiply_alpha, bool unpremultiply_alpha,
41 const GLfloat transform_matrix[16]);
fgalligan1 2013/04/04 20:38:10 16 is meaningless here. Basically you are passing
hkuang 2013/04/04 22:56:45 Keep it as it is now as see the StreamTextureProxy
42
34 // The attributes used during invocation of the extension. 43 // The attributes used during invocation of the extension.
35 static const GLuint kVertexPositionAttrib = 0; 44 static const GLuint kVertexPositionAttrib = 0;
36 45
37 private: 46 private:
38 bool initialized_; 47 bool initialized_;
39 48
40 static const int kNumPrograms = 12; 49 static const int kNumPrograms = 12;
41 GLuint programs_[kNumPrograms]; 50 GLuint programs_[kNumPrograms];
42 GLuint buffer_id_; 51 GLuint buffer_id_;
43 GLuint framebuffer_; 52 GLuint framebuffer_;
44 GLuint sampler_locations_[kNumPrograms]; 53 GLuint sampler_locations_[kNumPrograms];
45 54
46 DISALLOW_COPY_AND_ASSIGN(CopyTextureCHROMIUMResourceManager); 55 DISALLOW_COPY_AND_ASSIGN(CopyTextureCHROMIUMResourceManager);
47 }; 56 };
48 57
49 } // namespace gpu. 58 } // namespace gpu.
50 59
51 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_COPY_TEXTURE_CHROMIUM_H_ 60 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_COPY_TEXTURE_CHROMIUM_H_
52 61
53 62
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698