| 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 GPU_COMMAND_BUFFER_SERVICE_MAILBOX_MANAGER_IMPL_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_MAILBOX_MANAGER_IMPL_H_ |
| 6 #define GPU_COMMAND_BUFFER_SERVICE_MAILBOX_MANAGER_IMPL_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_MAILBOX_MANAGER_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "gpu/command_buffer/common/constants.h" | 13 #include "gpu/command_buffer/common/constants.h" |
| 14 #include "gpu/command_buffer/common/mailbox.h" | 14 #include "gpu/command_buffer/common/mailbox.h" |
| 15 #include "gpu/command_buffer/service/mailbox_manager.h" | 15 #include "gpu/command_buffer/service/mailbox_manager.h" |
| 16 #include "gpu/gpu_export.h" | 16 #include "gpu/gpu_export.h" |
| 17 | 17 |
| 18 namespace gpu { | 18 namespace gpu { |
| 19 namespace gles2 { | 19 namespace gles2 { |
| 20 | 20 |
| 21 class TextureBase; | 21 class TextureBase; |
| 22 class TextureManager; | |
| 23 | 22 |
| 24 // Manages resources scoped beyond the context or context group level. | 23 // Manages resources scoped beyond the context or context group level. |
| 25 class GPU_EXPORT MailboxManagerImpl : public MailboxManager { | 24 class GPU_EXPORT MailboxManagerImpl : public MailboxManager { |
| 26 public: | 25 public: |
| 27 MailboxManagerImpl(); | 26 MailboxManagerImpl(); |
| 28 | 27 |
| 29 // MailboxManager implementation: | 28 // MailboxManager implementation: |
| 30 TextureBase* ConsumeTexture(const Mailbox& mailbox) override; | 29 TextureBase* ConsumeTexture(const Mailbox& mailbox) override; |
| 31 void ProduceTexture(const Mailbox& mailbox, TextureBase* texture) override; | 30 void ProduceTexture(const Mailbox& mailbox, TextureBase* texture) override; |
| 32 bool UsesSync() override; | 31 bool UsesSync() override; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 54 TextureToMailboxMap textures_to_mailboxes_; | 53 TextureToMailboxMap textures_to_mailboxes_; |
| 55 | 54 |
| 56 DISALLOW_COPY_AND_ASSIGN(MailboxManagerImpl); | 55 DISALLOW_COPY_AND_ASSIGN(MailboxManagerImpl); |
| 57 }; | 56 }; |
| 58 | 57 |
| 59 } // namespage gles2 | 58 } // namespage gles2 |
| 60 } // namespace gpu | 59 } // namespace gpu |
| 61 | 60 |
| 62 #endif // GPU_COMMAND_BUFFER_SERVICE_MAILBOX_MANAGER_IMPL_H_ | 61 #endif // GPU_COMMAND_BUFFER_SERVICE_MAILBOX_MANAGER_IMPL_H_ |
| 63 | 62 |
| OLD | NEW |