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

Side by Side Diff: gpu/ipc/service/gpu_command_buffer_stub.h

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 | « gpu/ipc/service/gpu_channel_unittest.cc ('k') | gpu/ipc/service/gpu_command_buffer_stub.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ 5 #ifndef GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_
6 #define GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ 6 #define GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 int32_t route_id() const { return route_id_; } 108 int32_t route_id() const { return route_id_; }
109 109
110 // Identifies the stream for this command buffer. 110 // Identifies the stream for this command buffer.
111 int32_t stream_id() const { return stream_id_; } 111 int32_t stream_id() const { return stream_id_; }
112 112
113 // Sends a message to the console. 113 // Sends a message to the console.
114 void SendConsoleMessage(int32_t id, const std::string& message); 114 void SendConsoleMessage(int32_t id, const std::string& message);
115 115
116 void SendCachedShader(const std::string& key, const std::string& shader); 116 void SendCachedShader(const std::string& key, const std::string& shader);
117 117
118 gfx::GLSurface* surface() const { return surface_.get(); } 118 gl::GLSurface* surface() const { return surface_.get(); }
119 119
120 void AddDestructionObserver(DestructionObserver* observer); 120 void AddDestructionObserver(DestructionObserver* observer);
121 void RemoveDestructionObserver(DestructionObserver* observer); 121 void RemoveDestructionObserver(DestructionObserver* observer);
122 122
123 void SetLatencyInfoCallback(const LatencyInfoCallback& callback); 123 void SetLatencyInfoCallback(const LatencyInfoCallback& callback);
124 124
125 void MarkContextLost(); 125 void MarkContextLost();
126 126
127 const gles2::FeatureInfo* GetFeatureInfo() const; 127 const gles2::FeatureInfo* GetFeatureInfo() const;
128 128
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 bool use_virtualized_gl_context_; 223 bool use_virtualized_gl_context_;
224 const CommandBufferId command_buffer_id_; 224 const CommandBufferId command_buffer_id_;
225 const int32_t stream_id_; 225 const int32_t stream_id_;
226 const int32_t route_id_; 226 const int32_t route_id_;
227 uint32_t last_flush_count_; 227 uint32_t last_flush_count_;
228 228
229 std::unique_ptr<CommandBufferService> command_buffer_; 229 std::unique_ptr<CommandBufferService> command_buffer_;
230 std::unique_ptr<gles2::GLES2Decoder> decoder_; 230 std::unique_ptr<gles2::GLES2Decoder> decoder_;
231 std::unique_ptr<CommandExecutor> executor_; 231 std::unique_ptr<CommandExecutor> executor_;
232 std::unique_ptr<SyncPointClient> sync_point_client_; 232 std::unique_ptr<SyncPointClient> sync_point_client_;
233 scoped_refptr<gfx::GLSurface> surface_; 233 scoped_refptr<gl::GLSurface> surface_;
234 234
235 base::ObserverList<DestructionObserver> destruction_observers_; 235 base::ObserverList<DestructionObserver> destruction_observers_;
236 236
237 bool waiting_for_sync_point_; 237 bool waiting_for_sync_point_;
238 238
239 base::TimeTicks process_delayed_work_time_; 239 base::TimeTicks process_delayed_work_time_;
240 uint32_t previous_processed_num_; 240 uint32_t previous_processed_num_;
241 base::TimeTicks last_idle_time_; 241 base::TimeTicks last_idle_time_;
242 242
243 LatencyInfoCallback latency_info_callback_; 243 LatencyInfoCallback latency_info_callback_;
244 244
245 GURL active_url_; 245 GURL active_url_;
246 size_t active_url_hash_; 246 size_t active_url_hash_;
247 247
248 std::unique_ptr<WaitForCommandState> wait_for_token_; 248 std::unique_ptr<WaitForCommandState> wait_for_token_;
249 std::unique_ptr<WaitForCommandState> wait_for_get_offset_; 249 std::unique_ptr<WaitForCommandState> wait_for_get_offset_;
250 250
251 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 251 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
252 }; 252 };
253 253
254 } // namespace gpu 254 } // namespace gpu
255 255
256 #endif // GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ 256 #endif // GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW
« no previous file with comments | « gpu/ipc/service/gpu_channel_unittest.cc ('k') | gpu/ipc/service/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698