| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_BROWSER_COMPOSITOR_OWNED_MAILBOX_H_ | 5 #ifndef CONTENT_BROWSER_COMPOSITOR_OWNED_MAILBOX_H_ |
| 6 #define CONTENT_BROWSER_COMPOSITOR_OWNED_MAILBOX_H_ | 6 #define CONTENT_BROWSER_COMPOSITOR_OWNED_MAILBOX_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "content/browser/compositor/image_transport_factory.h" | 9 #include "content/browser/compositor/image_transport_factory.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 uint32 texture_id() const { return texture_id_; } | 27 uint32 texture_id() const { return texture_id_; } |
| 28 uint32 target() const { return mailbox_holder_.texture_target; } | 28 uint32 target() const { return mailbox_holder_.texture_target; } |
| 29 uint32 sync_point() const { return mailbox_holder_.sync_point; } | 29 uint32 sync_point() const { return mailbox_holder_.sync_point; } |
| 30 void UpdateSyncPoint(uint32 sync_point); | 30 void UpdateSyncPoint(uint32 sync_point); |
| 31 void Destroy(); | 31 void Destroy(); |
| 32 | 32 |
| 33 protected: | 33 protected: |
| 34 virtual ~OwnedMailbox(); | 34 virtual ~OwnedMailbox(); |
| 35 | 35 |
| 36 // ImageTransportFactoryObserver implementation. | 36 // ImageTransportFactoryObserver implementation. |
| 37 virtual void OnLostResources() OVERRIDE; | 37 virtual void OnLostResources() override; |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 friend class base::RefCounted<OwnedMailbox>; | 40 friend class base::RefCounted<OwnedMailbox>; |
| 41 | 41 |
| 42 uint32 texture_id_; | 42 uint32 texture_id_; |
| 43 gpu::MailboxHolder mailbox_holder_; | 43 gpu::MailboxHolder mailbox_holder_; |
| 44 GLHelper* gl_helper_; | 44 GLHelper* gl_helper_; |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 } // namespace content | 47 } // namespace content |
| 48 | 48 |
| 49 #endif // CONTENT_BROWSER_COMPOSITOR_OWNED_MAILBOX_H_ | 49 #endif // CONTENT_BROWSER_COMPOSITOR_OWNED_MAILBOX_H_ |
| OLD | NEW |