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

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

Issue 1273563002: Mac Overlays: Add GPU back-pressure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use default fences Created 5 years, 4 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 IPC_STRUCT_END() 103 IPC_STRUCT_END()
104 104
105 IPC_STRUCT_BEGIN(AcceleratedSurfaceMsg_BufferPresented_Params) 105 IPC_STRUCT_BEGIN(AcceleratedSurfaceMsg_BufferPresented_Params)
106 // If the browser needs framerate throttling based on GPU back-pressure to be 106 // If the browser needs framerate throttling based on GPU back-pressure to be
107 // disabled (e.g, because the NSView isn't visible but tab capture is active), 107 // disabled (e.g, because the NSView isn't visible but tab capture is active),
108 // then this is set to true. 108 // then this is set to true.
109 IPC_STRUCT_MEMBER(bool, disable_throttling) 109 IPC_STRUCT_MEMBER(bool, disable_throttling)
110 // If the browser is drawing to the screen, this is the CGL renderer ID of 110 // If the browser is drawing to the screen, this is the CGL renderer ID of
111 // the GL context that the brower is using. 111 // the GL context that the brower is using.
112 IPC_STRUCT_MEMBER(int32, renderer_id) 112 IPC_STRUCT_MEMBER(int32, renderer_id)
113 // The CGDirectDisplayID on which the content was displayed, to be used for
114 // computing vsync. If vsync is not enabled, this is zero.
115 IPC_STRUCT_MEMBER(uint32, display_id_for_vsync)
113 IPC_STRUCT_END() 116 IPC_STRUCT_END()
114 #endif 117 #endif
115 118
116 IPC_STRUCT_BEGIN(AcceleratedJpegDecoderMsg_Decode_Params) 119 IPC_STRUCT_BEGIN(AcceleratedJpegDecoderMsg_Decode_Params)
117 IPC_STRUCT_MEMBER(int32, input_buffer_id) 120 IPC_STRUCT_MEMBER(int32, input_buffer_id)
118 IPC_STRUCT_MEMBER(gfx::Size, coded_size) 121 IPC_STRUCT_MEMBER(gfx::Size, coded_size)
119 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, input_buffer_handle) 122 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, input_buffer_handle)
120 IPC_STRUCT_MEMBER(uint32, input_buffer_size) 123 IPC_STRUCT_MEMBER(uint32, input_buffer_size)
121 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, output_video_frame_handle) 124 IPC_STRUCT_MEMBER(base::SharedMemoryHandle, output_video_frame_handle)
122 IPC_STRUCT_MEMBER(uint32, output_buffer_size) 125 IPC_STRUCT_MEMBER(uint32, output_buffer_size)
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) 799 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy)
797 800
798 //------------------------------------------------------------------------------ 801 //------------------------------------------------------------------------------
799 // Accelerated JPEG Decoder Host Messages 802 // Accelerated JPEG Decoder Host Messages
800 // These messages are sent from the GPU process to Browser process. 803 // These messages are sent from the GPU process to Browser process.
801 // 804 //
802 // Report decode status. 805 // Report decode status.
803 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, 806 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck,
804 int32, /* bitstream_buffer_id */ 807 int32, /* bitstream_buffer_id */
805 media::JpegDecodeAccelerator::Error /* error */) 808 media::JpegDecodeAccelerator::Error /* error */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698