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