| 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 #ifndef MEDIA_VIDEO_PICTURE_H_ | 5 #ifndef MEDIA_VIDEO_PICTURE_H_ |
| 6 #define MEDIA_VIDEO_PICTURE_H_ | 6 #define MEDIA_VIDEO_PICTURE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "ui/gfx/gl/gl_context.h" | |
| 10 #include "ui/gfx/size.h" | 9 #include "ui/gfx/size.h" |
| 11 | 10 |
| 12 namespace media { | 11 namespace media { |
| 13 | 12 |
| 14 // A picture buffer that is composed of a GLES2 texture. | 13 // A picture buffer that is composed of a GLES2 texture. |
| 15 // This is the media-namespace equivalent of PP_PictureBuffer_Dev. | 14 // This is the media-namespace equivalent of PP_PictureBuffer_Dev. |
| 16 class PictureBuffer { | 15 class PictureBuffer { |
| 17 public: | 16 public: |
| 18 PictureBuffer(int32 id, gfx::Size size, uint32 texture_id); | 17 PictureBuffer(int32 id, gfx::Size size, uint32 texture_id); |
| 19 | 18 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 } | 60 } |
| 62 | 61 |
| 63 private: | 62 private: |
| 64 int32 picture_buffer_id_; | 63 int32 picture_buffer_id_; |
| 65 int32 bitstream_buffer_id_; | 64 int32 bitstream_buffer_id_; |
| 66 }; | 65 }; |
| 67 | 66 |
| 68 } // namespace media | 67 } // namespace media |
| 69 | 68 |
| 70 #endif // MEDIA_VIDEO_PICTURE_H_ | 69 #endif // MEDIA_VIDEO_PICTURE_H_ |
| OLD | NEW |