| 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 "gpu/command_buffer/common/mailbox.h" | 9 #include "gpu/command_buffer/common/mailbox.h" |
| 10 #include "media/base/media_export.h" | 10 #include "media/base/media_export.h" |
| 11 #include "ui/gfx/geometry/rect.h" | 11 #include "ui/gfx/geometry/rect.h" |
| 12 #include "ui/gfx/size.h" | 12 #include "ui/gfx/geometry/size.h" |
| 13 | 13 |
| 14 namespace media { | 14 namespace media { |
| 15 | 15 |
| 16 // A picture buffer that is composed of a GLES2 texture. | 16 // A picture buffer that is composed of a GLES2 texture. |
| 17 // This is the media-namespace equivalent of PP_PictureBuffer_Dev. | 17 // This is the media-namespace equivalent of PP_PictureBuffer_Dev. |
| 18 class MEDIA_EXPORT PictureBuffer { | 18 class MEDIA_EXPORT PictureBuffer { |
| 19 public: | 19 public: |
| 20 PictureBuffer(int32 id, gfx::Size size, uint32 texture_id); | 20 PictureBuffer(int32 id, gfx::Size size, uint32 texture_id); |
| 21 PictureBuffer(int32 id, | 21 PictureBuffer(int32 id, |
| 22 gfx::Size size, | 22 gfx::Size size, |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 private: | 81 private: |
| 82 int32 picture_buffer_id_; | 82 int32 picture_buffer_id_; |
| 83 int32 bitstream_buffer_id_; | 83 int32 bitstream_buffer_id_; |
| 84 gfx::Rect visible_rect_; | 84 gfx::Rect visible_rect_; |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 } // namespace media | 87 } // namespace media |
| 88 | 88 |
| 89 #endif // MEDIA_VIDEO_PICTURE_H_ | 89 #endif // MEDIA_VIDEO_PICTURE_H_ |
| OLD | NEW |