| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CC_RESOURCES_TEXTURE_MAILBOX_H_ | 5 #ifndef CC_RESOURCES_TEXTURE_MAILBOX_H_ |
| 6 #define CC_RESOURCES_TEXTURE_MAILBOX_H_ | 6 #define CC_RESOURCES_TEXTURE_MAILBOX_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/memory/shared_memory.h" | 13 #include "base/memory/shared_memory.h" |
| 14 #include "cc/base/cc_export.h" | 14 #include "cc/base/cc_export.h" |
| 15 #include "gpu/command_buffer/common/mailbox_holder.h" | 15 #include "gpu/command_buffer/common/mailbox_holder.h" |
| 16 #include "ui/gfx/color_space.h" | 16 #include "ui/gfx/color_space.h" |
| 17 #include "ui/gfx/geometry/size.h" | 17 #include "ui/gfx/geometry/size.h" |
| 18 | 18 |
| 19 namespace cc { | 19 namespace cc { |
| 20 class SharedBitmap; | 20 class SharedBitmap; |
| 21 | 21 |
| 22 // TODO(skaslev, danakj) Rename this class more apropriately since now it | 22 // TODO(skaslev, danakj) Rename this class more apropriately since now it |
| 23 // can hold a shared memory resource as well as a texture mailbox. | 23 // can hold a shared memory resource as well as a texture mailbox. |
| 24 class CC_EXPORT TextureMailbox { | 24 class CC_EXPORT TextureMailbox { |
| 25 public: | 25 public: |
| 26 TextureMailbox(); | 26 TextureMailbox(); |
| 27 TextureMailbox(const TextureMailbox& other); |
| 27 explicit TextureMailbox(const gpu::MailboxHolder& mailbox_holder); | 28 explicit TextureMailbox(const gpu::MailboxHolder& mailbox_holder); |
| 28 TextureMailbox(const gpu::Mailbox& mailbox, | 29 TextureMailbox(const gpu::Mailbox& mailbox, |
| 29 const gpu::SyncToken& sync_token, | 30 const gpu::SyncToken& sync_token, |
| 30 uint32_t target); | 31 uint32_t target); |
| 31 TextureMailbox(const gpu::Mailbox& mailbox, | 32 TextureMailbox(const gpu::Mailbox& mailbox, |
| 32 const gpu::SyncToken& sync_token, | 33 const gpu::SyncToken& sync_token, |
| 33 uint32_t target, | 34 uint32_t target, |
| 34 const gfx::Size& size_in_pixels, | 35 const gfx::Size& size_in_pixels, |
| 35 bool is_overlay_candidate, | 36 bool is_overlay_candidate, |
| 36 bool secure_output_only); | 37 bool secure_output_only); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 bool wants_promotion_hint_; | 102 bool wants_promotion_hint_; |
| 102 #endif | 103 #endif |
| 103 bool secure_output_only_; | 104 bool secure_output_only_; |
| 104 bool nearest_neighbor_; | 105 bool nearest_neighbor_; |
| 105 gfx::ColorSpace color_space_; | 106 gfx::ColorSpace color_space_; |
| 106 }; | 107 }; |
| 107 | 108 |
| 108 } // namespace cc | 109 } // namespace cc |
| 109 | 110 |
| 110 #endif // CC_RESOURCES_TEXTURE_MAILBOX_H_ | 111 #endif // CC_RESOURCES_TEXTURE_MAILBOX_H_ |
| OLD | NEW |