| 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 bool premultiply_alpha, | 213 bool premultiply_alpha, |
| 214 bool flip_y) { | 214 bool flip_y) { |
| 215 return false; | 215 return false; |
| 216 } | 216 } |
| 217 | 217 |
| 218 // Do tex(Sub)Image2D/3D for current frame. If it is not implemented for given | 218 // Do tex(Sub)Image2D/3D for current frame. If it is not implemented for given |
| 219 // parameters or fails, it returns false. | 219 // parameters or fails, it returns false. |
| 220 // The method is wrapping calls to glTexImage2D, glTexSubImage2D, | 220 // The method is wrapping calls to glTexImage2D, glTexSubImage2D, |
| 221 // glTexImage3D and glTexSubImage3D and parameters have the same name and | 221 // glTexImage3D and glTexSubImage3D and parameters have the same name and |
| 222 // meaning. | 222 // meaning. |
| 223 // Texture needs to be created and bound to active texture unit before this | 223 // Texture |texture| needs to be created and bound to active texture unit |
| 224 // call. In addition, TexSubImage2D and TexSubImage3D require that previous | 224 // before this call. In addition, TexSubImage2D and TexSubImage3D require that |
| 225 // TexImage2D and TexSubImage3D calls, respectivelly, defined the texture | 225 // previous TexImage2D and TexSubImage3D calls, respectively, defined the |
| 226 // content. | 226 // texture content. |
| 227 virtual bool TexImageImpl(TexImageFunctionID function_id, | 227 virtual bool TexImageImpl(TexImageFunctionID function_id, |
| 228 unsigned target, | 228 unsigned target, |
| 229 gpu::gles2::GLES2Interface* gl, | 229 gpu::gles2::GLES2Interface* gl, |
| 230 unsigned texture, |
| 230 int level, | 231 int level, |
| 231 int internalformat, | 232 int internalformat, |
| 232 unsigned format, | 233 unsigned format, |
| 233 unsigned type, | 234 unsigned type, |
| 234 int xoffset, | 235 int xoffset, |
| 235 int yoffset, | 236 int yoffset, |
| 236 int zoffset, | 237 int zoffset, |
| 237 bool flip_y, | 238 bool flip_y, |
| 238 bool premultiply_alpha) { | 239 bool premultiply_alpha) { |
| 239 return false; | 240 return false; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 virtual bool GetLastUploadedFrameInfo(unsigned* width, | 286 virtual bool GetLastUploadedFrameInfo(unsigned* width, |
| 286 unsigned* height, | 287 unsigned* height, |
| 287 double* timestamp) { | 288 double* timestamp) { |
| 288 return false; | 289 return false; |
| 289 } | 290 } |
| 290 }; | 291 }; |
| 291 | 292 |
| 292 } // namespace blink | 293 } // namespace blink |
| 293 | 294 |
| 294 #endif | 295 #endif |
| OLD | NEW |