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

Side by Side Diff: mojo/gles2/command_buffer_client_impl.h

Issue 2069663002: Some scoped_ptr -> std::unique_ptr conversion, especially under //mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 6 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 | « mojo/data_pipe_utils/data_pipe_file_utils.cc ('k') | mojo/gles2/command_buffer_client_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 MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ 5 #ifndef MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_
6 #define MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ 6 #define MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory>
9 10
10 #include "base/macros.h" 11 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "gpu/command_buffer/client/gpu_control.h" 12 #include "gpu/command_buffer/client/gpu_control.h"
13 #include "gpu/command_buffer/common/command_buffer.h" 13 #include "gpu/command_buffer/common/command_buffer.h"
14 #include "gpu/command_buffer/common/command_buffer_shared.h" 14 #include "gpu/command_buffer/common/command_buffer_shared.h"
15 #include "mojo/public/cpp/bindings/binding.h" 15 #include "mojo/public/cpp/bindings/binding.h"
16 #include "mojo/services/gpu/interfaces/command_buffer.mojom.h" 16 #include "mojo/services/gpu/interfaces/command_buffer.mojom.h"
17 17
18 namespace base { 18 namespace base {
19 class RunLoop; 19 class RunLoop;
20 } 20 }
21 21
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 void DidLoseContext(int32_t lost_reason) override; 81 void DidLoseContext(int32_t lost_reason) override;
82 82
83 void TryUpdateState(); 83 void TryUpdateState();
84 void MakeProgressAndUpdateState(); 84 void MakeProgressAndUpdateState();
85 85
86 gpu::CommandBufferSharedState* shared_state() const { return shared_state_; } 86 gpu::CommandBufferSharedState* shared_state() const { return shared_state_; }
87 87
88 CommandBufferDelegate* delegate_; 88 CommandBufferDelegate* delegate_;
89 mojo::Binding<mojo::CommandBufferLostContextObserver> observer_binding_; 89 mojo::Binding<mojo::CommandBufferLostContextObserver> observer_binding_;
90 mojo::CommandBufferPtr command_buffer_; 90 mojo::CommandBufferPtr command_buffer_;
91 scoped_ptr<SyncClientImpl> sync_client_impl_; 91 std::unique_ptr<SyncClientImpl> sync_client_impl_;
92 scoped_ptr<SyncPointClientImpl> sync_point_client_impl_; 92 std::unique_ptr<SyncPointClientImpl> sync_point_client_impl_;
93 93
94 gpu::Capabilities capabilities_; 94 gpu::Capabilities capabilities_;
95 State last_state_; 95 State last_state_;
96 mojo::ScopedSharedBufferHandle shared_state_handle_; 96 mojo::ScopedSharedBufferHandle shared_state_handle_;
97 gpu::CommandBufferSharedState* shared_state_; 97 gpu::CommandBufferSharedState* shared_state_;
98 int32_t last_put_offset_; 98 int32_t last_put_offset_;
99 int32_t next_transfer_buffer_id_; 99 int32_t next_transfer_buffer_id_;
100 100
101 const MojoAsyncWaiter* async_waiter_; 101 const MojoAsyncWaiter* async_waiter_;
102 }; 102 };
103 103
104 } // gles2 104 } // gles2
105 105
106 #endif // MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_ 106 #endif // MOJO_GLES2_COMMAND_BUFFER_CLIENT_IMPL_H_
OLDNEW
« no previous file with comments | « mojo/data_pipe_utils/data_pipe_file_utils.cc ('k') | mojo/gles2/command_buffer_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698