| OLD | NEW |
| 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 #include "content/common/gpu/media/mac_video_decode_accelerator.h" | 5 #include "content/common/gpu/media/mac_video_decode_accelerator.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #import "base/mac/foundation_util.h" | 9 #import "base/mac/foundation_util.h" |
| 10 #import "base/memory/ref_counted_memory.h" | 10 #import "base/memory/ref_counted_memory.h" |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 void MacVideoDecodeAccelerator::NotifyInitializeDone() { | 321 void MacVideoDecodeAccelerator::NotifyInitializeDone() { |
| 322 if (client_) | 322 if (client_) |
| 323 client_->NotifyInitializeDone(); | 323 client_->NotifyInitializeDone(); |
| 324 } | 324 } |
| 325 | 325 |
| 326 void MacVideoDecodeAccelerator::RequestPictures() { | 326 void MacVideoDecodeAccelerator::RequestPictures() { |
| 327 if (client_) { | 327 if (client_) { |
| 328 client_->ProvidePictureBuffers( | 328 client_->ProvidePictureBuffers( |
| 329 kNumPictureBuffers, | 329 kNumPictureBuffers, |
| 330 gfx::Size(config_record_builder_.coded_width(), | 330 gfx::Size(config_record_builder_.coded_width(), |
| 331 config_record_builder_.coded_height())); | 331 config_record_builder_.coded_height()), |
| 332 GL_TEXTURE_RECTANGLE_ARB); |
| 332 } | 333 } |
| 333 } | 334 } |
| 334 | 335 |
| 335 void MacVideoDecodeAccelerator::NotifyFlushDone() { | 336 void MacVideoDecodeAccelerator::NotifyFlushDone() { |
| 336 if (client_) | 337 if (client_) |
| 337 client_->NotifyFlushDone(); | 338 client_->NotifyFlushDone(); |
| 338 } | 339 } |
| 339 | 340 |
| 340 void MacVideoDecodeAccelerator::NotifyResetDone() { | 341 void MacVideoDecodeAccelerator::NotifyResetDone() { |
| 341 decoded_images_.clear(); | 342 decoded_images_.clear(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 356 } | 357 } |
| 357 | 358 |
| 358 MacVideoDecodeAccelerator::UsedPictureInfo::~UsedPictureInfo() { | 359 MacVideoDecodeAccelerator::UsedPictureInfo::~UsedPictureInfo() { |
| 359 } | 360 } |
| 360 | 361 |
| 361 MacVideoDecodeAccelerator::DecodedImageInfo::DecodedImageInfo() { | 362 MacVideoDecodeAccelerator::DecodedImageInfo::DecodedImageInfo() { |
| 362 } | 363 } |
| 363 | 364 |
| 364 MacVideoDecodeAccelerator::DecodedImageInfo::~DecodedImageInfo() { | 365 MacVideoDecodeAccelerator::DecodedImageInfo::~DecodedImageInfo() { |
| 365 } | 366 } |
| OLD | NEW |