Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: components/mus/gles2/command_buffer_impl.h

Issue 1937173002: Revert of Pepper takes ownership of a mailbox before passing it to the texture layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/layers/texture_layer_unittest.cc ('k') | components/mus/gles2/command_buffer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_ 5 #ifndef COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_
6 #define COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_ 6 #define COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 mojo::ScopedHandle memory_handle, 60 mojo::ScopedHandle memory_handle,
61 int32_t type, 61 int32_t type,
62 mojo::SizePtr size, 62 mojo::SizePtr size,
63 int32_t format, 63 int32_t format,
64 int32_t internal_format) override; 64 int32_t internal_format) override;
65 void DestroyImage(int32_t id) override; 65 void DestroyImage(int32_t id) override;
66 void CreateStreamTexture( 66 void CreateStreamTexture(
67 uint32_t client_texture_id, 67 uint32_t client_texture_id,
68 const mojom::CommandBuffer::CreateStreamTextureCallback& callback 68 const mojom::CommandBuffer::CreateStreamTextureCallback& callback
69 ) override; 69 ) override;
70 void TakeFrontBuffer(const gpu::Mailbox& mailbox) override; 70 void ProduceFrontBuffer(const gpu::Mailbox& mailbox) override;
71 void ReturnFrontBuffer(const gpu::Mailbox& mailbox, bool is_lost) override;
72 void SignalQuery(uint32_t query, uint32_t signal_id) override; 71 void SignalQuery(uint32_t query, uint32_t signal_id) override;
73 void SignalSyncToken(const gpu::SyncToken& sync_token, 72 void SignalSyncToken(const gpu::SyncToken& sync_token,
74 uint32_t signal_id) override; 73 uint32_t signal_id) override;
75 void WaitForGetOffsetInRange( 74 void WaitForGetOffsetInRange(
76 int32_t start, int32_t end, 75 int32_t start, int32_t end,
77 const mojom::CommandBuffer::WaitForGetOffsetInRangeCallback& callback 76 const mojom::CommandBuffer::WaitForGetOffsetInRangeCallback& callback
78 ) override; 77 ) override;
79 void WaitForTokenInRange( 78 void WaitForTokenInRange(
80 int32_t start, int32_t end, 79 int32_t start, int32_t end,
81 const mojom::CommandBuffer::WaitForGetOffsetInRangeCallback& callback 80 const mojom::CommandBuffer::WaitForGetOffsetInRangeCallback& callback
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 std::unique_ptr<CommandBufferDriver> driver_; 115 std::unique_ptr<CommandBufferDriver> driver_;
117 std::unique_ptr<mojo::Binding<CommandBuffer>> binding_; 116 std::unique_ptr<mojo::Binding<CommandBuffer>> binding_;
118 mojom::CommandBufferClientPtr client_; 117 mojom::CommandBufferClientPtr client_;
119 118
120 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl); 119 DISALLOW_COPY_AND_ASSIGN(CommandBufferImpl);
121 }; 120 };
122 121
123 } // namespace mus 122 } // namespace mus
124 123
125 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_ 124 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/texture_layer_unittest.cc ('k') | components/mus/gles2/command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698