OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 bool premultiply_alpha, | 214 bool premultiply_alpha, |
215 bool flip_y) { | 215 bool flip_y) { |
216 return false; | 216 return false; |
217 } | 217 } |
218 | 218 |
219 // Do tex(Sub)Image2D/3D for current frame. If it is not implemented for given | 219 // Do tex(Sub)Image2D/3D for current frame. If it is not implemented for given |
220 // parameters or fails, it returns false. | 220 // parameters or fails, it returns false. |
221 // The method is wrapping calls to glTexImage2D, glTexSubImage2D, | 221 // The method is wrapping calls to glTexImage2D, glTexSubImage2D, |
222 // glTexImage3D and glTexSubImage3D and parameters have the same name and | 222 // glTexImage3D and glTexSubImage3D and parameters have the same name and |
223 // meaning. | 223 // meaning. |
224 // Texture needs to be created and bound to active texture unit before this | 224 // Texture |texture| needs to be created and bound to active texture unit |
225 // call. In addition, TexSubImage2D and TexSubImage3D require that previous | 225 // before this call. In addition, TexSubImage2D and TexSubImage3D require that |
226 // TexImage2D and TexSubImage3D calls, respectivelly, defined the texture | 226 // previous TexImage2D and TexSubImage3D calls, respectively, defined the |
227 // content. | 227 // texture content. |
228 virtual bool TexImageImpl(TexImageFunctionID function_id, | 228 virtual bool TexImageImpl(TexImageFunctionID function_id, |
229 unsigned target, | 229 unsigned target, |
230 gpu::gles2::GLES2Interface* gl, | 230 gpu::gles2::GLES2Interface* gl, |
| 231 unsigned texture, |
231 int level, | 232 int level, |
232 int internalformat, | 233 int internalformat, |
233 unsigned format, | 234 unsigned format, |
234 unsigned type, | 235 unsigned type, |
235 int xoffset, | 236 int xoffset, |
236 int yoffset, | 237 int yoffset, |
237 int zoffset, | 238 int zoffset, |
238 bool flip_y, | 239 bool flip_y, |
239 bool premultiply_alpha) { | 240 bool premultiply_alpha) { |
240 return false; | 241 return false; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 virtual bool GetLastUploadedFrameInfo(unsigned* width, | 287 virtual bool GetLastUploadedFrameInfo(unsigned* width, |
287 unsigned* height, | 288 unsigned* height, |
288 double* timestamp) { | 289 double* timestamp) { |
289 return false; | 290 return false; |
290 } | 291 } |
291 }; | 292 }; |
292 | 293 |
293 } // namespace blink | 294 } // namespace blink |
294 | 295 |
295 #endif | 296 #endif |
OLD | NEW |