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

Side by Side Diff: content/common/gpu/gpu_messages.h

Issue 628703005: Remove GpuHostMsg_FrameDrawn and replace with client channel swap ack (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 // Multiply-included message file, hence no include guard here, but see below 5 // Multiply-included message file, hence no include guard here, but see below
6 // for a much smaller-than-usual include guard section. 6 // for a much smaller-than-usual include guard section.
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, 363 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage,
364 int /*severity*/, 364 int /*severity*/,
365 std::string /* header */, 365 std::string /* header */,
366 std::string /* message */) 366 std::string /* message */)
367 367
368 // Tells the browser that a new accelerated surface was initialized. 368 // Tells the browser that a new accelerated surface was initialized.
369 IPC_MESSAGE_CONTROL2(GpuHostMsg_AcceleratedSurfaceInitialized, 369 IPC_MESSAGE_CONTROL2(GpuHostMsg_AcceleratedSurfaceInitialized,
370 int32 /* surface_id */, 370 int32 /* surface_id */,
371 int32 /* route_id */) 371 int32 /* route_id */)
372 372
373 // Tells the browser that a frame with the specific latency info was drawn to
374 // the screen
375 IPC_MESSAGE_CONTROL1(GpuHostMsg_FrameDrawn,
376 std::vector<ui::LatencyInfo> /* latency_info */)
377
378 // Same as above with a rect of the part of the surface that changed. 373 // Same as above with a rect of the part of the surface that changed.
379 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceBuffersSwapped, 374 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceBuffersSwapped,
380 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params) 375 GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params)
381 376
382 // Tells the browser about updated parameters for vsync alignment. 377 // Tells the browser about updated parameters for vsync alignment.
383 IPC_MESSAGE_CONTROL3(GpuHostMsg_UpdateVSyncParameters, 378 IPC_MESSAGE_CONTROL3(GpuHostMsg_UpdateVSyncParameters,
384 int32 /* surface_id */, 379 int32 /* surface_id */,
385 base::TimeTicks /* timebase */, 380 base::TimeTicks /* timebase */,
386 base::TimeDelta /* interval */) 381 base::TimeDelta /* interval */)
387 382
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 media::VideoCodecProfile /* output_profile */, 528 media::VideoCodecProfile /* output_profile */,
534 uint32 /* initial_bitrate */, 529 uint32 /* initial_bitrate */,
535 int32, /* route_id */ 530 int32, /* route_id */
536 bool /* succeeded */) 531 bool /* succeeded */)
537 532
538 // Tells the proxy that there was an error and the command buffer had to be 533 // Tells the proxy that there was an error and the command buffer had to be
539 // destroyed for some reason. 534 // destroyed for some reason.
540 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_Destroyed, 535 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_Destroyed,
541 gpu::error::ContextLostReason /* reason */) 536 gpu::error::ContextLostReason /* reason */)
542 537
538 // Tells the browser that SwapBuffers returned and passes latency info
539 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SwapBuffersCompleted,
540 std::vector<ui::LatencyInfo> /* latency_info */)
541
543 // Send to stub on surface visibility change. 542 // Send to stub on surface visibility change.
544 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetSurfaceVisible, bool /* visible */) 543 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetSurfaceVisible, bool /* visible */)
545 544
546 // Sent to proxy when the gpu memory manager changes its memory allocation. 545 // Sent to proxy when the gpu memory manager changes its memory allocation.
547 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetMemoryAllocation, 546 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SetMemoryAllocation,
548 gpu::MemoryAllocation /* allocation */) 547 gpu::MemoryAllocation /* allocation */)
549 548
550 // Sent to stub when proxy is assigned a memory allocation changed callback. 549 // Sent to stub when proxy is assigned a memory allocation changed callback.
551 IPC_MESSAGE_ROUTED1( 550 IPC_MESSAGE_ROUTED1(
552 GpuCommandBufferMsg_SetClientHasMemoryAllocationChangedCallback, 551 GpuCommandBufferMsg_SetClientHasMemoryAllocationChangedCallback,
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 int32 /* bitstream_buffer_id */, 715 int32 /* bitstream_buffer_id */,
717 uint32 /* payload_size */, 716 uint32 /* payload_size */,
718 bool /* key_frame */) 717 bool /* key_frame */)
719 718
720 // Report error condition. 719 // Report error condition.
721 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, 720 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError,
722 media::VideoEncodeAccelerator::Error /* error */) 721 media::VideoEncodeAccelerator::Error /* error */)
723 722
724 // Send destroy request to the encoder. 723 // Send destroy request to the encoder.
725 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) 724 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698