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

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

Issue 1962493002: Make Mac swap code like other platforms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review feedback 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
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 "gpu/ipc/service/gpu_command_buffer_stub.h" 5 #include "gpu/ipc/service/gpu_command_buffer_stub.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after
1132 command_buffer_->GetLastState().error == error::kLostContext) 1132 command_buffer_->GetLastState().error == error::kLostContext)
1133 return; 1133 return;
1134 1134
1135 command_buffer_->SetContextLostReason(error::kUnknown); 1135 command_buffer_->SetContextLostReason(error::kUnknown);
1136 if (decoder_) 1136 if (decoder_)
1137 decoder_->MarkContextLost(error::kUnknown); 1137 decoder_->MarkContextLost(error::kUnknown);
1138 command_buffer_->SetParseError(error::kLostContext); 1138 command_buffer_->SetParseError(error::kLostContext);
1139 } 1139 }
1140 1140
1141 void GpuCommandBufferStub::SendSwapBuffersCompleted( 1141 void GpuCommandBufferStub::SendSwapBuffersCompleted(
1142 const std::vector<ui::LatencyInfo>& latency_info, 1142 const GpuCommandBufferMsg_SwapBuffersCompleted_Params& params) {
1143 gfx::SwapResult result) { 1143 Send(new GpuCommandBufferMsg_SwapBuffersCompleted(route_id_, params));
1144 Send(new GpuCommandBufferMsg_SwapBuffersCompleted(route_id_, latency_info,
1145 result));
1146 } 1144 }
1147 1145
1148 void GpuCommandBufferStub::SendUpdateVSyncParameters(base::TimeTicks timebase, 1146 void GpuCommandBufferStub::SendUpdateVSyncParameters(base::TimeTicks timebase,
1149 base::TimeDelta interval) { 1147 base::TimeDelta interval) {
1150 Send(new GpuCommandBufferMsg_UpdateVSyncParameters(route_id_, timebase, 1148 Send(new GpuCommandBufferMsg_UpdateVSyncParameters(route_id_, timebase,
1151 interval)); 1149 interval));
1152 } 1150 }
1153 1151
1154 } // namespace gpu 1152 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/ipc/service/gpu_command_buffer_stub.h ('k') | gpu/ipc/service/image_transport_surface_overlay_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698