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

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

Issue 2499703002: gpu: Fix Mac fullscreen video (Closed)
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | gpu/ipc/service/pass_through_image_transport_surface.cc » ('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 "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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 } 286 }
287 #endif 287 #endif
288 288
289 void GpuCommandBufferStub::DidSwapBuffersComplete( 289 void GpuCommandBufferStub::DidSwapBuffersComplete(
290 SwapBuffersCompleteParams params) { 290 SwapBuffersCompleteParams params) {
291 GpuCommandBufferMsg_SwapBuffersCompleted_Params send_params; 291 GpuCommandBufferMsg_SwapBuffersCompleted_Params send_params;
292 #if defined(OS_MACOSX) 292 #if defined(OS_MACOSX)
293 send_params.ca_context_id = params.ca_context_id; 293 send_params.ca_context_id = params.ca_context_id;
294 send_params.fullscreen_low_power_ca_context_valid = 294 send_params.fullscreen_low_power_ca_context_valid =
295 params.fullscreen_low_power_ca_context_valid; 295 params.fullscreen_low_power_ca_context_valid;
296 send_params.fullscreen_low_power_ca_context_id =
297 params.fullscreen_low_power_ca_context_id;
296 send_params.io_surface = params.io_surface; 298 send_params.io_surface = params.io_surface;
297 send_params.pixel_size = params.pixel_size; 299 send_params.pixel_size = params.pixel_size;
298 send_params.scale_factor = params.scale_factor; 300 send_params.scale_factor = params.scale_factor;
299 send_params.in_use_responses = params.in_use_responses; 301 send_params.in_use_responses = params.in_use_responses;
300 #endif 302 #endif
301 send_params.latency_info = std::move(params.latency_info); 303 send_params.latency_info = std::move(params.latency_info);
302 send_params.result = params.result; 304 send_params.result = params.result;
303 Send(new GpuCommandBufferMsg_SwapBuffersCompleted(route_id_, send_params)); 305 Send(new GpuCommandBufferMsg_SwapBuffersCompleted(route_id_, send_params));
304 } 306 }
305 307
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after
1142 command_buffer_->GetLastState().error == error::kLostContext) 1144 command_buffer_->GetLastState().error == error::kLostContext)
1143 return; 1145 return;
1144 1146
1145 command_buffer_->SetContextLostReason(error::kUnknown); 1147 command_buffer_->SetContextLostReason(error::kUnknown);
1146 if (decoder_) 1148 if (decoder_)
1147 decoder_->MarkContextLost(error::kUnknown); 1149 decoder_->MarkContextLost(error::kUnknown);
1148 command_buffer_->SetParseError(error::kLostContext); 1150 command_buffer_->SetParseError(error::kLostContext);
1149 } 1151 }
1150 1152
1151 } // namespace gpu 1153 } // namespace gpu
OLDNEW
« no previous file with comments | « no previous file | gpu/ipc/service/pass_through_image_transport_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698