| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 virtual double MediaTimeForTimeValue(double time_value) const = 0; | 173 virtual double MediaTimeForTimeValue(double time_value) const = 0; |
| 174 | 174 |
| 175 virtual unsigned DecodedFrameCount() const = 0; | 175 virtual unsigned DecodedFrameCount() const = 0; |
| 176 virtual unsigned DroppedFrameCount() const = 0; | 176 virtual unsigned DroppedFrameCount() const = 0; |
| 177 virtual unsigned CorruptedFrameCount() const { return 0; } | 177 virtual unsigned CorruptedFrameCount() const { return 0; } |
| 178 virtual size_t AudioDecodedByteCount() const = 0; | 178 virtual size_t AudioDecodedByteCount() const = 0; |
| 179 virtual size_t VideoDecodedByteCount() const = 0; | 179 virtual size_t VideoDecodedByteCount() const = 0; |
| 180 | 180 |
| 181 virtual void Paint(WebCanvas*, const WebRect&, cc::PaintFlags&) = 0; | 181 virtual void Paint(WebCanvas*, const WebRect&, cc::PaintFlags&) = 0; |
| 182 | 182 |
| 183 // TODO(kbr): remove non-|target| version. crbug.com/349871 | |
| 184 // | |
| 185 // Do a GPU-GPU texture copy of the current video frame to |texture|, | 183 // Do a GPU-GPU texture copy of the current video frame to |texture|, |
| 186 // reallocating |texture| at the appropriate size with given internal | 184 // reallocating |texture| at the appropriate size with given internal |
| 187 // format, format, and type if necessary. If the copy is impossible | 185 // format, format, and type if necessary. If the copy is impossible |
| 188 // or fails, it returns false. | 186 // or fails, it returns false. |
| 189 virtual bool CopyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, | 187 virtual bool CopyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, |
| 188 unsigned target, |
| 190 unsigned texture, | 189 unsigned texture, |
| 191 unsigned internal_format, | 190 unsigned internal_format, |
| 192 unsigned format, | 191 unsigned format, |
| 193 unsigned type, | 192 unsigned type, |
| 194 bool premultiply_alpha, | |
| 195 bool flip_y) { | |
| 196 return false; | |
| 197 } | |
| 198 | |
| 199 // Do a GPU-GPU textures copy. If the copy is impossible or fails, it returns | |
| 200 // false. | |
| 201 virtual bool CopyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, | |
| 202 unsigned target, | |
| 203 unsigned texture, | |
| 204 unsigned internal_format, | |
| 205 unsigned type, | |
| 206 int level, | 193 int level, |
| 207 bool premultiply_alpha, | 194 bool premultiply_alpha, |
| 208 bool flip_y) { | 195 bool flip_y) { |
| 209 return false; | 196 return false; |
| 210 } | 197 } |
| 198 |
| 211 // Copy sub video frame texture to |texture|. If the copy is impossible or | 199 // Copy sub video frame texture to |texture|. If the copy is impossible or |
| 212 // fails, it returns false. | 200 // fails, it returns false. |
| 213 virtual bool CopyVideoSubTextureToPlatformTexture(gpu::gles2::GLES2Interface*, | 201 virtual bool CopyVideoSubTextureToPlatformTexture(gpu::gles2::GLES2Interface*, |
| 214 unsigned target, | 202 unsigned target, |
| 215 unsigned texture, | 203 unsigned texture, |
| 216 int level, | 204 int level, |
| 217 int xoffset, | 205 int xoffset, |
| 218 int yoffset, | 206 int yoffset, |
| 219 bool premultiply_alpha, | 207 bool premultiply_alpha, |
| 220 bool flip_y) { | 208 bool flip_y) { |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 virtual bool GetLastUploadedFrameInfo(unsigned* width, | 280 virtual bool GetLastUploadedFrameInfo(unsigned* width, |
| 293 unsigned* height, | 281 unsigned* height, |
| 294 double* timestamp) { | 282 double* timestamp) { |
| 295 return false; | 283 return false; |
| 296 } | 284 } |
| 297 }; | 285 }; |
| 298 | 286 |
| 299 } // namespace blink | 287 } // namespace blink |
| 300 | 288 |
| 301 #endif | 289 #endif |
| OLD | NEW |