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

Side by Side Diff: content/common/gpu/media/mac_video_decode_accelerator.mm

Issue 10392141: Plumb texture target to VideoDecodeAccelerator::Client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win build Created 8 years, 6 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 | Annotate | Revision Log
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 #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
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
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 }
OLDNEW
« no previous file with comments | « content/common/gpu/media/gpu_video_decode_accelerator.cc ('k') | content/common/gpu/media/omx_video_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698