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

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

Issue 1084173004: Adding status to swap complete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix ozone demo Created 5 years, 6 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 | « content/common/gpu/gpu_command_buffer_stub.h ('k') | content/common/gpu/gpu_messages.h » ('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 #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/hash.h" 8 #include "base/hash.h"
9 #include "base/json/json_writer.h" 9 #include "base/json/json_writer.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after
1100 if (decoder_) 1100 if (decoder_)
1101 decoder_->MarkContextLost(gpu::error::kUnknown); 1101 decoder_->MarkContextLost(gpu::error::kUnknown);
1102 command_buffer_->SetParseError(gpu::error::kLostContext); 1102 command_buffer_->SetParseError(gpu::error::kLostContext);
1103 } 1103 }
1104 1104
1105 uint64 GpuCommandBufferStub::GetMemoryUsage() const { 1105 uint64 GpuCommandBufferStub::GetMemoryUsage() const {
1106 return GetMemoryManager()->GetClientMemoryUsage(this); 1106 return GetMemoryManager()->GetClientMemoryUsage(this);
1107 } 1107 }
1108 1108
1109 void GpuCommandBufferStub::SendSwapBuffersCompleted( 1109 void GpuCommandBufferStub::SendSwapBuffersCompleted(
1110 const std::vector<ui::LatencyInfo>& latency_info) { 1110 const std::vector<ui::LatencyInfo>& latency_info,
1111 Send(new GpuCommandBufferMsg_SwapBuffersCompleted(route_id_, latency_info)); 1111 gfx::SwapResult result) {
1112 Send(new GpuCommandBufferMsg_SwapBuffersCompleted(route_id_, latency_info,
1113 result));
1112 } 1114 }
1113 1115
1114 void GpuCommandBufferStub::SendUpdateVSyncParameters(base::TimeTicks timebase, 1116 void GpuCommandBufferStub::SendUpdateVSyncParameters(base::TimeTicks timebase,
1115 base::TimeDelta interval) { 1117 base::TimeDelta interval) {
1116 Send(new GpuCommandBufferMsg_UpdateVSyncParameters(route_id_, timebase, 1118 Send(new GpuCommandBufferMsg_UpdateVSyncParameters(route_id_, timebase,
1117 interval)); 1119 interval));
1118 } 1120 }
1119 1121
1120 } // namespace content 1122 } // namespace content
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.h ('k') | content/common/gpu/gpu_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698