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

Side by Side Diff: ppapi/proxy/ppapi_messages.h

Issue 8790009: Regularize how ImageData and Graphics2D are created. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comment Created 9 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 header, no traditional include guard. 5 // Multiply-included message header, no traditional include guard.
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 std::string /* data */, 747 std::string /* data */,
748 PP_NetAddress_Private /* net_addr */) 748 PP_NetAddress_Private /* net_addr */)
749 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBUDPSocket_Close, 749 IPC_MESSAGE_CONTROL1(PpapiHostMsg_PPBUDPSocket_Close,
750 uint32 /* socket_id */) 750 uint32 /* socket_id */)
751 751
752 // PPB_Font. 752 // PPB_Font.
753 IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBFont_GetFontFamilies, 753 IPC_SYNC_MESSAGE_CONTROL0_1(PpapiHostMsg_PPBFont_GetFontFamilies,
754 std::string /* result */) 754 std::string /* result */)
755 755
756 // PPB_Graphics2D. 756 // PPB_Graphics2D.
757 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics2D_Create,
758 PP_Instance /* instance */,
759 PP_Size /* size */,
760 PP_Bool /* is_always_opaque */,
761 ppapi::HostResource /* result */)
757 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBGraphics2D_PaintImageData, 762 IPC_MESSAGE_ROUTED5(PpapiHostMsg_PPBGraphics2D_PaintImageData,
758 ppapi::HostResource /* graphics_2d */, 763 ppapi::HostResource /* graphics_2d */,
759 ppapi::HostResource /* image_data */, 764 ppapi::HostResource /* image_data */,
760 PP_Point /* top_left */, 765 PP_Point /* top_left */,
761 bool /* src_rect_specified */, 766 bool /* src_rect_specified */,
762 PP_Rect /* src_rect */) 767 PP_Rect /* src_rect */)
763 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBGraphics2D_Scroll, 768 IPC_MESSAGE_ROUTED4(PpapiHostMsg_PPBGraphics2D_Scroll,
764 ppapi::HostResource /* graphics_2d */, 769 ppapi::HostResource /* graphics_2d */,
765 bool /* clip_specified */, 770 bool /* clip_specified */,
766 PP_Rect /* clip */, 771 PP_Rect /* clip */,
767 PP_Point /* amount */) 772 PP_Point /* amount */)
768 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics2D_ReplaceContents, 773 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics2D_ReplaceContents,
769 ppapi::HostResource /* graphics_2d */, 774 ppapi::HostResource /* graphics_2d */,
770 ppapi::HostResource /* image_data */) 775 ppapi::HostResource /* image_data */)
771 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics2D_Flush, 776 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics2D_Flush,
772 ppapi::HostResource /* graphics_2d */) 777 ppapi::HostResource /* graphics_2d */)
773 778
774 // PPB_Graphics3D. 779 // PPB_Graphics3D.
775 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBGraphics3D_Create, 780 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBGraphics3D_Create,
776 PP_Instance /* instance */, 781 PP_Instance /* instance */,
777 std::vector<int32_t> /* attrib_list */, 782 std::vector<int32_t> /* attrib_list */,
778 ppapi::HostResource /* result */) 783 ppapi::HostResource /* result */)
779
780 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBGraphics3D_InitCommandBuffer, 784 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBGraphics3D_InitCommandBuffer,
781 ppapi::HostResource /* context */, 785 ppapi::HostResource /* context */,
782 int32 /* size */, 786 int32 /* size */,
783 base::SharedMemoryHandle /* ring_buffer */) 787 base::SharedMemoryHandle /* ring_buffer */)
784
785 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBGraphics3D_GetState, 788 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBGraphics3D_GetState,
786 ppapi::HostResource /* context */, 789 ppapi::HostResource /* context */,
787 gpu::CommandBuffer::State /* state */) 790 gpu::CommandBuffer::State /* state */)
788
789 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics3D_Flush, 791 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBGraphics3D_Flush,
790 ppapi::HostResource /* context */, 792 ppapi::HostResource /* context */,
791 int32 /* put_offset */, 793 int32 /* put_offset */,
792 int32 /* last_known_get */, 794 int32 /* last_known_get */,
793 gpu::CommandBuffer::State /* state */) 795 gpu::CommandBuffer::State /* state */)
794
795 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics3D_AsyncFlush, 796 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics3D_AsyncFlush,
796 ppapi::HostResource /* context */, 797 ppapi::HostResource /* context */,
797 int32 /* put_offset */) 798 int32 /* put_offset */)
798
799 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBGraphics3D_CreateTransferBuffer, 799 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBGraphics3D_CreateTransferBuffer,
800 ppapi::HostResource /* context */, 800 ppapi::HostResource /* context */,
801 int32 /* size */, 801 int32 /* size */,
802 int32 /* id */) 802 int32 /* id */)
803
804 IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_DestroyTransferBuffer, 803 IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_DestroyTransferBuffer,
805 ppapi::HostResource /* context */, 804 ppapi::HostResource /* context */,
806 int32 /* id */) 805 int32 /* id */)
807
808 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBGraphics3D_GetTransferBuffer, 806 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBGraphics3D_GetTransferBuffer,
809 ppapi::HostResource /* context */, 807 ppapi::HostResource /* context */,
810 int32 /* id */, 808 int32 /* id */,
811 base::SharedMemoryHandle /* transfer_buffer */, 809 base::SharedMemoryHandle /* transfer_buffer */,
812 uint32 /* size */) 810 uint32 /* size */)
813
814 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics3D_SwapBuffers, 811 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics3D_SwapBuffers,
815 ppapi::HostResource /* graphics_3d */) 812 ppapi::HostResource /* graphics_3d */)
816 813
814 // PPB_ImageData.
815 IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_Create,
816 PP_Instance /* instance */,
817 int32 /* format */,
818 PP_Size /* size */,
819 PP_Bool /* init_to_zero */,
820 ppapi::HostResource /* result_resource */,
821 std::string /* image_data_desc */,
822 ppapi::proxy::ImageHandle /* result */)
823
817 // PPB_Instance. 824 // PPB_Instance.
818 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetWindowObject, 825 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetWindowObject,
819 PP_Instance /* instance */, 826 PP_Instance /* instance */,
820 ppapi::proxy::SerializedVar /* result */) 827 ppapi::proxy::SerializedVar /* result */)
821 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetOwnerElementObject, 828 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBInstance_GetOwnerElementObject,
822 PP_Instance /* instance */, 829 PP_Instance /* instance */,
823 ppapi::proxy::SerializedVar /* result */) 830 ppapi::proxy::SerializedVar /* result */)
824 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_BindGraphics, 831 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBInstance_BindGraphics,
825 PP_Instance /* instance */, 832 PP_Instance /* instance */,
826 ppapi::HostResource /* device */, 833 ppapi::HostResource /* device */,
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
1019 ppapi::proxy::SerializedVar /* var */, 1026 ppapi::proxy::SerializedVar /* var */,
1020 int64 /* object_class */, 1027 int64 /* object_class */,
1021 int64 /* object-data */, 1028 int64 /* object-data */,
1022 PP_Bool /* result */) 1029 PP_Bool /* result */)
1023 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated, 1030 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated,
1024 PP_Instance /* instance */, 1031 PP_Instance /* instance */,
1025 int64 /* object_class */, 1032 int64 /* object_class */,
1026 int64 /* object_data */, 1033 int64 /* object_data */,
1027 ppapi::proxy::SerializedVar /* result */) 1034 ppapi::proxy::SerializedVar /* result */)
1028 1035
1029 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_ResourceCreation_Graphics2D,
1030 PP_Instance /* instance */,
1031 PP_Size /* size */,
1032 PP_Bool /* is_always_opaque */,
1033 ppapi::HostResource /* result */)
1034 IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_ResourceCreation_ImageData,
1035 PP_Instance /* instance */,
1036 int32 /* format */,
1037 PP_Size /* size */,
1038 PP_Bool /* init_to_zero */,
1039 ppapi::HostResource /* result_resource */,
1040 std::string /* image_data_desc */,
1041 ppapi::proxy::ImageHandle /* result */)
1042
1043 // PPB_VideoCapture_Dev. 1036 // PPB_VideoCapture_Dev.
1044 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBVideoCapture_Create, 1037 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBVideoCapture_Create,
1045 PP_Instance /* instance */, 1038 PP_Instance /* instance */,
1046 ppapi::HostResource /* result */) 1039 ppapi::HostResource /* result */)
1047 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBVideoCapture_StartCapture, 1040 IPC_MESSAGE_ROUTED3(PpapiHostMsg_PPBVideoCapture_StartCapture,
1048 ppapi::HostResource /* video_capture */, 1041 ppapi::HostResource /* video_capture */,
1049 PP_VideoCaptureDeviceInfo_Dev /* requested_info */, 1042 PP_VideoCaptureDeviceInfo_Dev /* requested_info */,
1050 uint32_t /* buffer_count */) 1043 uint32_t /* buffer_count */)
1051 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoCapture_ReuseBuffer, 1044 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoCapture_ReuseBuffer,
1052 ppapi::HostResource /* video_capture */, 1045 ppapi::HostResource /* video_capture */,
(...skipping 17 matching lines...) Expand all
1070 std::vector<PP_PictureBuffer_Dev> /* picture buffers */) 1063 std::vector<PP_PictureBuffer_Dev> /* picture buffers */)
1071 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer, 1064 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBVideoDecoder_ReusePictureBuffer,
1072 ppapi::HostResource /* video_decoder */, 1065 ppapi::HostResource /* video_decoder */,
1073 int32_t /* picture buffer id */) 1066 int32_t /* picture buffer id */)
1074 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush, 1067 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Flush,
1075 ppapi::HostResource /* video_decoder */) 1068 ppapi::HostResource /* video_decoder */)
1076 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset, 1069 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBVideoDecoder_Reset,
1077 ppapi::HostResource /* video_decoder */) 1070 ppapi::HostResource /* video_decoder */)
1078 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy, 1071 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBVideoDecoder_Destroy,
1079 ppapi::HostResource /* video_decoder */) 1072 ppapi::HostResource /* video_decoder */)
OLDNEW
« no previous file with comments | « no previous file | ppapi/proxy/ppb_graphics_2d_proxy.h » ('j') | ppapi/proxy/resource_creation_proxy.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698