| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "gpu/command_buffer/common/mailbox.h" | 10 #include "gpu/command_buffer/common/mailbox.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 uint32_t texture_id, | 28 uint32_t texture_id, |
| 29 const gpu::Mailbox& texture_mailbox); | 29 const gpu::Mailbox& texture_mailbox); |
| 30 | 30 |
| 31 // Returns the client-specified id of the buffer. | 31 // Returns the client-specified id of the buffer. |
| 32 int32_t id() const { return id_; } | 32 int32_t id() const { return id_; } |
| 33 | 33 |
| 34 // Returns the size of the buffer. | 34 // Returns the size of the buffer. |
| 35 gfx::Size size() const { | 35 gfx::Size size() const { |
| 36 return size_; | 36 return size_; |
| 37 } | 37 } |
| 38 void set_size(gfx::Size size) { size_ = size; } |
| 38 | 39 |
| 39 // Returns the id of the texture. | 40 // Returns the id of the texture. |
| 40 // NOTE: The texture id in the renderer process corresponds to a different | 41 // NOTE: The texture id in the renderer process corresponds to a different |
| 41 // texture id in the GPU process. | 42 // texture id in the GPU process. |
| 42 uint32_t texture_id() const { return texture_id_; } | 43 uint32_t texture_id() const { return texture_id_; } |
| 43 | 44 |
| 44 uint32_t internal_texture_id() const { return internal_texture_id_; } | 45 uint32_t internal_texture_id() const { return internal_texture_id_; } |
| 45 | 46 |
| 46 const gpu::Mailbox& texture_mailbox() const { | 47 const gpu::Mailbox& texture_mailbox() const { |
| 47 return texture_mailbox_; | 48 return texture_mailbox_; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 private: | 85 private: |
| 85 int32_t picture_buffer_id_; | 86 int32_t picture_buffer_id_; |
| 86 int32_t bitstream_buffer_id_; | 87 int32_t bitstream_buffer_id_; |
| 87 gfx::Rect visible_rect_; | 88 gfx::Rect visible_rect_; |
| 88 bool allow_overlay_; | 89 bool allow_overlay_; |
| 89 }; | 90 }; |
| 90 | 91 |
| 91 } // namespace media | 92 } // namespace media |
| 92 | 93 |
| 93 #endif // MEDIA_VIDEO_PICTURE_H_ | 94 #endif // MEDIA_VIDEO_PICTURE_H_ |
| OLD | NEW |