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

Unified Diff: gpu/command_buffer/service/gpu_processor_mac.cc

Issue 5317007: Add flow control between renderer and GPU processes, and, on Mac OS X,... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« chrome/renderer/ggl/ggl.cc ('K') | « gpu/command_buffer/service/gpu_processor.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gpu_processor_mac.cc
===================================================================
--- gpu/command_buffer/service/gpu_processor_mac.cc (revision 67289)
+++ gpu/command_buffer/service/gpu_processor_mac.cc (working copy)
@@ -99,11 +99,22 @@
return surface_->GetSurfaceId();
}
+uint64 GPUProcessor::swap_buffers_count() const {
+ return swap_buffers_count_;
+}
+
+void GPUProcessor::set_acknowledged_swap_buffers_count(
+ uint64 acknowledged_swap_buffers_count) {
+ acknowledged_swap_buffers_count_ = acknowledged_swap_buffers_count;
+}
+
void GPUProcessor::WillSwapBuffers() {
DCHECK(decoder_.get());
DCHECK(decoder_->GetGLContext());
DCHECK(decoder_->GetGLContext()->IsCurrent());
+ ++swap_buffers_count_;
+
if (surface_.get()) {
surface_->SwapBuffers();
}
« chrome/renderer/ggl/ggl.cc ('K') | « gpu/command_buffer/service/gpu_processor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698