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

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

Issue 781683005: Ozone: Avoid blocking in Swapbuffer Call. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unintended changes. Created 6 years 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 #include "base/bind.h" 5 #include "base/bind.h"
6 #include "base/bind_helpers.h" 6 #include "base/bind_helpers.h"
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "base/hash.h" 9 #include "base/hash.h"
10 #include "base/json/json_writer.h" 10 #include "base/json/json_writer.h"
(...skipping 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after
1082 1082
1083 uint64 GpuCommandBufferStub::GetMemoryUsage() const { 1083 uint64 GpuCommandBufferStub::GetMemoryUsage() const {
1084 return GetMemoryManager()->GetClientMemoryUsage(this); 1084 return GetMemoryManager()->GetClientMemoryUsage(this);
1085 } 1085 }
1086 1086
1087 void GpuCommandBufferStub::SwapBuffersCompleted( 1087 void GpuCommandBufferStub::SwapBuffersCompleted(
1088 const std::vector<ui::LatencyInfo>& latency_info) { 1088 const std::vector<ui::LatencyInfo>& latency_info) {
1089 Send(new GpuCommandBufferMsg_SwapBuffersCompleted(route_id_, latency_info)); 1089 Send(new GpuCommandBufferMsg_SwapBuffersCompleted(route_id_, latency_info));
1090 } 1090 }
1091 1091
1092 void GpuCommandBufferStub::PageFlipCompleted() {
1093 Send(new GpuCommandBufferMsg_PageFlipCompleted(route_id_));
1094 }
1095
1092 } // namespace content 1096 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698