OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <GLES2/gl2.h> | 5 #include <GLES2/gl2.h> |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "chrome/renderer/ggl/ggl.h" | 8 #include "content/renderer/ggl.h" |
9 #include "chrome/renderer/media/gles2_video_decode_context.h" | 9 #include "content/renderer/media/gles2_video_decode_context.h" |
10 | 10 |
11 Gles2VideoDecodeContext::Gles2VideoDecodeContext( | 11 Gles2VideoDecodeContext::Gles2VideoDecodeContext( |
12 MessageLoop* message_loop, bool memory_mapped, ggl::Context* context) | 12 MessageLoop* message_loop, bool memory_mapped, ggl::Context* context) |
13 : message_loop_(message_loop), | 13 : message_loop_(message_loop), |
14 memory_mapped_(memory_mapped), | 14 memory_mapped_(memory_mapped), |
15 context_(context) { | 15 context_(context) { |
16 } | 16 } |
17 | 17 |
18 Gles2VideoDecodeContext::~Gles2VideoDecodeContext() { | 18 Gles2VideoDecodeContext::~Gles2VideoDecodeContext() { |
19 } | 19 } |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 } | 113 } |
114 | 114 |
115 ReleaseAllVideoFrames(); | 115 ReleaseAllVideoFrames(); |
116 DCHECK_EQ(0u, frames_.size()); | 116 DCHECK_EQ(0u, frames_.size()); |
117 | 117 |
118 task->Run(); | 118 task->Run(); |
119 delete task; | 119 delete task; |
120 } | 120 } |
121 | 121 |
122 DISABLE_RUNNABLE_METHOD_REFCOUNT(Gles2VideoDecodeContext); | 122 DISABLE_RUNNABLE_METHOD_REFCOUNT(Gles2VideoDecodeContext); |
OLD | NEW |