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

Side by Side Diff: gpu/command_buffer/service/in_process_command_buffer.h

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
OLDNEW
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 GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_
6 #define GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ 6 #define GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 unsigned internalformat, 113 unsigned internalformat,
114 unsigned usage) override; 114 unsigned usage) override;
115 uint32 InsertSyncPoint() override; 115 uint32 InsertSyncPoint() override;
116 uint32 InsertFutureSyncPoint() override; 116 uint32 InsertFutureSyncPoint() override;
117 void RetireSyncPoint(uint32 sync_point) override; 117 void RetireSyncPoint(uint32 sync_point) override;
118 void SignalSyncPoint(uint32 sync_point, 118 void SignalSyncPoint(uint32 sync_point,
119 const base::Closure& callback) override; 119 const base::Closure& callback) override;
120 void SignalQuery(uint32 query_id, const base::Closure& callback) override; 120 void SignalQuery(uint32 query_id, const base::Closure& callback) override;
121 void SetSurfaceVisible(bool visible) override; 121 void SetSurfaceVisible(bool visible) override;
122 uint32 CreateStreamTexture(uint32 texture_id) override; 122 uint32 CreateStreamTexture(uint32 texture_id) override;
123 void SetLock(base::Lock*) override;
123 124
124 // The serializer interface to the GPU service (i.e. thread). 125 // The serializer interface to the GPU service (i.e. thread).
125 class Service { 126 class Service {
126 public: 127 public:
127 Service(); 128 Service();
128 virtual ~Service(); 129 virtual ~Service();
129 130
130 virtual void AddRef() const = 0; 131 virtual void AddRef() const = 0;
131 virtual void Release() const = 0; 132 virtual void Release() const = 0;
132 133
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 255
255 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_; 256 base::WeakPtr<InProcessCommandBuffer> gpu_thread_weak_ptr_;
256 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_; 257 base::WeakPtrFactory<InProcessCommandBuffer> gpu_thread_weak_ptr_factory_;
257 258
258 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer); 259 DISALLOW_COPY_AND_ASSIGN(InProcessCommandBuffer);
259 }; 260 };
260 261
261 } // namespace gpu 262 } // namespace gpu
262 263
263 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_ 264 #endif // GPU_COMMAND_BUFFER_SERVICE_IN_PROCESS_COMMAND_BUFFER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gpu_tracer_unittest.cc ('k') | gpu/command_buffer/service/in_process_command_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698