| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "chrome/gpu/media/fake_gl_video_decode_engine.h" | 5 #include "content/gpu/media/fake_gl_video_decode_engine.h" |
| 6 | 6 |
| 7 #include "media/base/limits.h" | 7 #include "media/base/limits.h" |
| 8 #include "media/base/video_frame.h" | 8 #include "media/base/video_frame.h" |
| 9 #include "media/video/video_decode_context.h" | 9 #include "media/video/video_decode_context.h" |
| 10 | 10 |
| 11 FakeGlVideoDecodeEngine::FakeGlVideoDecodeEngine() | 11 FakeGlVideoDecodeEngine::FakeGlVideoDecodeEngine() |
| 12 : width_(0), | 12 : width_(0), |
| 13 height_(0), | 13 height_(0), |
| 14 handler_(NULL), | 14 handler_(NULL), |
| 15 context_(NULL) { | 15 context_(NULL) { |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 handler_->ProduceVideoSample(NULL); | 123 handler_->ProduceVideoSample(NULL); |
| 124 } | 124 } |
| 125 | 125 |
| 126 void FakeGlVideoDecodeEngine::UploadCompleteTask( | 126 void FakeGlVideoDecodeEngine::UploadCompleteTask( |
| 127 scoped_refptr<media::VideoFrame> frame) { | 127 scoped_refptr<media::VideoFrame> frame) { |
| 128 // |frame| is the upload target. We can immediately send this frame out. | 128 // |frame| is the upload target. We can immediately send this frame out. |
| 129 handler_->ConsumeVideoFrame(frame, dummy_stats_); | 129 handler_->ConsumeVideoFrame(frame, dummy_stats_); |
| 130 } | 130 } |
| 131 | 131 |
| 132 DISABLE_RUNNABLE_METHOD_REFCOUNT(FakeGlVideoDecodeEngine); | 132 DISABLE_RUNNABLE_METHOD_REFCOUNT(FakeGlVideoDecodeEngine); |
| OLD | NEW |