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

Side by Side Diff: content/common/gpu/gpu_command_buffer_stub.h

Issue 1084173004: Adding status to swap complete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 (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 CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 void SetPreemptByFlag(scoped_refptr<gpu::PreemptionFlag> flag); 142 void SetPreemptByFlag(scoped_refptr<gpu::PreemptionFlag> flag);
143 143
144 void SetLatencyInfoCallback(const LatencyInfoCallback& callback); 144 void SetLatencyInfoCallback(const LatencyInfoCallback& callback);
145 145
146 void MarkContextLost(); 146 void MarkContextLost();
147 147
148 uint64 GetMemoryUsage() const; 148 uint64 GetMemoryUsage() const;
149 149
150 void SendSwapBuffersCompleted( 150 void SendSwapBuffersCompleted(
151 const std::vector<ui::LatencyInfo>& latency_info); 151 const std::vector<ui::LatencyInfo>& latency_info,
152 int32 result);
152 void SendUpdateVSyncParameters(base::TimeTicks timebase, 153 void SendUpdateVSyncParameters(base::TimeTicks timebase,
153 base::TimeDelta interval); 154 base::TimeDelta interval);
154 155
155 private: 156 private:
156 GpuMemoryManager* GetMemoryManager() const; 157 GpuMemoryManager* GetMemoryManager() const;
157 bool MakeCurrent(); 158 bool MakeCurrent();
158 void Destroy(); 159 void Destroy();
159 160
160 // Cleans up and sends reply if OnInitialize failed. 161 // Cleans up and sends reply if OnInitialize failed.
161 void OnInitializeFailed(IPC::Message* reply_message); 162 void OnInitializeFailed(IPC::Message* reply_message);
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 size_t total_gpu_memory_; 285 size_t total_gpu_memory_;
285 scoped_ptr<WaitForCommandState> wait_for_token_; 286 scoped_ptr<WaitForCommandState> wait_for_token_;
286 scoped_ptr<WaitForCommandState> wait_for_get_offset_; 287 scoped_ptr<WaitForCommandState> wait_for_get_offset_;
287 288
288 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 289 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
289 }; 290 };
290 291
291 } // namespace content 292 } // namespace content
292 293
293 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 294 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698