Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 814 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) | 814 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) |
| 815 | 815 |
| 816 //------------------------------------------------------------------------------ | 816 //------------------------------------------------------------------------------ |
| 817 // Accelerated JPEG Decoder Host Messages | 817 // Accelerated JPEG Decoder Host Messages |
| 818 // These messages are sent from the GPU process to Browser process. | 818 // These messages are sent from the GPU process to Browser process. |
| 819 // | 819 // |
| 820 // Report decode status. | 820 // Report decode status. |
| 821 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, | 821 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, |
| 822 int32, /* bitstream_buffer_id */ | 822 int32, /* bitstream_buffer_id */ |
| 823 media::JpegDecodeAccelerator::Error /* error */) | 823 media::JpegDecodeAccelerator::Error /* error */) |
| 824 | |
| 825 IPC_MESSAGE_CONTROL1(GpuMsg_CreateArcAccelerator, int32_t /* device_type */) | |
|
Pawel Osciak
2015/11/24 10:41:14
Perhaps we should use an enum for device type? IPC
| |
| 826 IPC_MESSAGE_CONTROL0(GpuMsg_ShutdownArcAccelerators) | |
|
Pawel Osciak
2015/11/24 10:41:14
Would this allow one instance to shut down all the
kcwu
2015/11/24 13:02:43
This message is only used when Chrome browser proc
| |
| 827 IPC_MESSAGE_CONTROL2(GpuHostMsg_ArcAcceleratorCreated, | |
| 828 IPC::ChannelHandle /* handle to channel */, | |
| 829 uint32_t /* initialization status */) | |
| 830 | |
| 831 // TODO in this CL(kcwu) create a new gpu_arc_messages.h ? | |
| 832 IPC_SYNC_MESSAGE_CONTROL5_1(ArcAcceleratorMsg_BindSharedBuffer, | |
|
Pawel Osciak
2015/11/24 10:41:14
s/SharedBuffer/SharedMemory/ ?
kcwu
2015/11/24 13:02:43
The message name and following types just follow t
| |
| 833 uint32_t /* port */, | |
| 834 size_t /* index */, | |
| 835 base::FileDescriptor /* ashmem fd */, | |
| 836 size_t /* offset */, | |
|
Pawel Osciak
2015/11/24 10:41:14
off_t?
| |
| 837 size_t /* length */, | |
| 838 uint32_t /* result */) | |
|
Pawel Osciak
2015/11/24 10:41:14
Do we need more results than a bool success/false?
| |
| 839 IPC_SYNC_MESSAGE_CONTROL3_1(ArcAcceleratorMsg_BindGraphicBuffer, | |
| 840 uint32_t /* port */, | |
| 841 size_t /* index */, | |
| 842 base::FileDescriptor /* dmabuf fd */, | |
| 843 uint32_t /* result */) | |
| 844 IPC_SYNC_MESSAGE_CONTROL2_1(ArcAcceleratorMsg_UseBuffer, | |
| 845 uint32_t /* port */, | |
| 846 size_t /* index */, | |
| 847 uint32_t /* result */) | |
| 848 IPC_SYNC_MESSAGE_CONTROL2_2(ArcAcceleratorMsg_SetBufferCount, | |
| 849 uint32_t /* port */, | |
|
Pawel Osciak
2015/11/24 10:41:14
Do we need port if we specify both in and out coun
kcwu
2015/11/24 13:02:43
Ah, my variable name seems confusing.
This is a sy
| |
| 850 size_t /* in_count */, | |
| 851 size_t /* out_count */, | |
| 852 size_t /* result */) | |
| 853 IPC_SYNC_MESSAGE_CONTROL0_0(ArcAcceleratorMsg_Reset) | |
| 854 IPC_SYNC_MESSAGE_CONTROL4_1(ArcAcceleratorMsg_SetPixelFormat, | |
| 855 uint32_t /* port */, | |
| 856 uint32_t /* pixel_format */, | |
| 857 uint32_t /* image_size */, | |
| 858 uint32_t /* memory_type */, | |
| 859 uint32_t /* result */) | |
|
Pawel Osciak
2015/11/24 10:41:14
Do we need an Error notification message that woul
kcwu
2015/11/24 13:02:43
Yes, there is a new callback onError(). I will add
| |
| OLD | NEW |