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

Side by Side Diff: ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c

Issue 14335005: Pepper: Autogenerate thunk for PPB_Graphics2D. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased (file deletions in another commit) Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/c/ppb_graphics_2d.h ('k') | ppapi/ppapi_shared.gypi » ('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) 2013 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2013 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 5
6 /* NOTE: this is auto-generated from IDL */ 6 /* NOTE: this is auto-generated from IDL */
7 #include "ppapi/generators/pnacl_shim.h" 7 #include "ppapi/generators/pnacl_shim.h"
8 8
9 #include "ppapi/c/ppb.h" 9 #include "ppapi/c/ppb.h"
10 #include "ppapi/c/dev/ppb_audio_input_dev.h" 10 #include "ppapi/c/dev/ppb_audio_input_dev.h"
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 static PP_Resource Pnacl_M14_PPB_Graphics2D_Create(PP_Instance instance, const s truct PP_Size* size, PP_Bool is_always_opaque) { 595 static PP_Resource Pnacl_M14_PPB_Graphics2D_Create(PP_Instance instance, const s truct PP_Size* size, PP_Bool is_always_opaque) {
596 const struct PPB_Graphics2D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_0. real_iface; 596 const struct PPB_Graphics2D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_0. real_iface;
597 return iface->Create(instance, size, is_always_opaque); 597 return iface->Create(instance, size, is_always_opaque);
598 } 598 }
599 599
600 static PP_Bool Pnacl_M14_PPB_Graphics2D_IsGraphics2D(PP_Resource resource) { 600 static PP_Bool Pnacl_M14_PPB_Graphics2D_IsGraphics2D(PP_Resource resource) {
601 const struct PPB_Graphics2D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_0. real_iface; 601 const struct PPB_Graphics2D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_0. real_iface;
602 return iface->IsGraphics2D(resource); 602 return iface->IsGraphics2D(resource);
603 } 603 }
604 604
605 static PP_Bool Pnacl_M14_PPB_Graphics2D_Describe(PP_Resource graphics_2d, struct PP_Size* size, PP_Bool* is_always_opqaue) { 605 static PP_Bool Pnacl_M14_PPB_Graphics2D_Describe(PP_Resource graphics_2d, struct PP_Size* size, PP_Bool* is_always_opaque) {
606 const struct PPB_Graphics2D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_0. real_iface; 606 const struct PPB_Graphics2D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_0. real_iface;
607 return iface->Describe(graphics_2d, size, is_always_opqaue); 607 return iface->Describe(graphics_2d, size, is_always_opaque);
608 } 608 }
609 609
610 static void Pnacl_M14_PPB_Graphics2D_PaintImageData(PP_Resource graphics_2d, PP_ Resource image_data, const struct PP_Point* top_left, const struct PP_Rect* src_ rect) { 610 static void Pnacl_M14_PPB_Graphics2D_PaintImageData(PP_Resource graphics_2d, PP_ Resource image_data, const struct PP_Point* top_left, const struct PP_Rect* src_ rect) {
611 const struct PPB_Graphics2D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_0. real_iface; 611 const struct PPB_Graphics2D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_0. real_iface;
612 iface->PaintImageData(graphics_2d, image_data, top_left, src_rect); 612 iface->PaintImageData(graphics_2d, image_data, top_left, src_rect);
613 } 613 }
614 614
615 static void Pnacl_M14_PPB_Graphics2D_Scroll(PP_Resource graphics_2d, const struc t PP_Rect* clip_rect, const struct PP_Point* amount) { 615 static void Pnacl_M14_PPB_Graphics2D_Scroll(PP_Resource graphics_2d, const struc t PP_Rect* clip_rect, const struct PP_Point* amount) {
616 const struct PPB_Graphics2D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_0. real_iface; 616 const struct PPB_Graphics2D_1_0 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_0. real_iface;
617 iface->Scroll(graphics_2d, clip_rect, amount); 617 iface->Scroll(graphics_2d, clip_rect, amount);
(...skipping 16 matching lines...) Expand all
634 static PP_Resource Pnacl_M27_PPB_Graphics2D_Create(PP_Instance instance, const s truct PP_Size* size, PP_Bool is_always_opaque) { 634 static PP_Resource Pnacl_M27_PPB_Graphics2D_Create(PP_Instance instance, const s truct PP_Size* size, PP_Bool is_always_opaque) {
635 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1. real_iface; 635 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1. real_iface;
636 return iface->Create(instance, size, is_always_opaque); 636 return iface->Create(instance, size, is_always_opaque);
637 } 637 }
638 638
639 static PP_Bool Pnacl_M27_PPB_Graphics2D_IsGraphics2D(PP_Resource resource) { 639 static PP_Bool Pnacl_M27_PPB_Graphics2D_IsGraphics2D(PP_Resource resource) {
640 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1. real_iface; 640 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1. real_iface;
641 return iface->IsGraphics2D(resource); 641 return iface->IsGraphics2D(resource);
642 } 642 }
643 643
644 static PP_Bool Pnacl_M27_PPB_Graphics2D_Describe(PP_Resource graphics_2d, struct PP_Size* size, PP_Bool* is_always_opqaue) { 644 static PP_Bool Pnacl_M27_PPB_Graphics2D_Describe(PP_Resource graphics_2d, struct PP_Size* size, PP_Bool* is_always_opaque) {
645 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1. real_iface; 645 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1. real_iface;
646 return iface->Describe(graphics_2d, size, is_always_opqaue); 646 return iface->Describe(graphics_2d, size, is_always_opaque);
647 } 647 }
648 648
649 static void Pnacl_M27_PPB_Graphics2D_PaintImageData(PP_Resource graphics_2d, PP_ Resource image_data, const struct PP_Point* top_left, const struct PP_Rect* src_ rect) { 649 static void Pnacl_M27_PPB_Graphics2D_PaintImageData(PP_Resource graphics_2d, PP_ Resource image_data, const struct PP_Point* top_left, const struct PP_Rect* src_ rect) {
650 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1. real_iface; 650 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1. real_iface;
651 iface->PaintImageData(graphics_2d, image_data, top_left, src_rect); 651 iface->PaintImageData(graphics_2d, image_data, top_left, src_rect);
652 } 652 }
653 653
654 static void Pnacl_M27_PPB_Graphics2D_Scroll(PP_Resource graphics_2d, const struc t PP_Rect* clip_rect, const struct PP_Point* amount) { 654 static void Pnacl_M27_PPB_Graphics2D_Scroll(PP_Resource graphics_2d, const struc t PP_Rect* clip_rect, const struct PP_Point* amount) {
655 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1. real_iface; 655 const struct PPB_Graphics2D_1_1 *iface = Pnacl_WrapperInfo_PPB_Graphics2D_1_1. real_iface;
656 iface->Scroll(graphics_2d, clip_rect, amount); 656 iface->Scroll(graphics_2d, clip_rect, amount);
(...skipping 3047 matching lines...) Expand 10 before | Expand all | Expand 10 after
3704 .GetType = (PP_FileSystemType (*)(PP_Resource file_system))&Pnacl_M14_PPB_Fi leSystem_GetType 3704 .GetType = (PP_FileSystemType (*)(PP_Resource file_system))&Pnacl_M14_PPB_Fi leSystem_GetType
3705 }; 3705 };
3706 3706
3707 /* Not generating wrapper interface for PPB_Fullscreen_1_0 */ 3707 /* Not generating wrapper interface for PPB_Fullscreen_1_0 */
3708 3708
3709 /* Not generating wrapper interface for PPB_Gamepad_1_0 */ 3709 /* Not generating wrapper interface for PPB_Gamepad_1_0 */
3710 3710
3711 struct PPB_Graphics2D_1_0 Pnacl_Wrappers_PPB_Graphics2D_1_0 = { 3711 struct PPB_Graphics2D_1_0 Pnacl_Wrappers_PPB_Graphics2D_1_0 = {
3712 .Create = (PP_Resource (*)(PP_Instance instance, const struct PP_Size* size, PP_Bool is_always_opaque))&Pnacl_M14_PPB_Graphics2D_Create, 3712 .Create = (PP_Resource (*)(PP_Instance instance, const struct PP_Size* size, PP_Bool is_always_opaque))&Pnacl_M14_PPB_Graphics2D_Create,
3713 .IsGraphics2D = (PP_Bool (*)(PP_Resource resource))&Pnacl_M14_PPB_Graphics2D _IsGraphics2D, 3713 .IsGraphics2D = (PP_Bool (*)(PP_Resource resource))&Pnacl_M14_PPB_Graphics2D _IsGraphics2D,
3714 .Describe = (PP_Bool (*)(PP_Resource graphics_2d, struct PP_Size* size, PP_B ool* is_always_opqaue))&Pnacl_M14_PPB_Graphics2D_Describe, 3714 .Describe = (PP_Bool (*)(PP_Resource graphics_2d, struct PP_Size* size, PP_B ool* is_always_opaque))&Pnacl_M14_PPB_Graphics2D_Describe,
3715 .PaintImageData = (void (*)(PP_Resource graphics_2d, PP_Resource image_data, const struct PP_Point* top_left, const struct PP_Rect* src_rect))&Pnacl_M14_PPB _Graphics2D_PaintImageData, 3715 .PaintImageData = (void (*)(PP_Resource graphics_2d, PP_Resource image_data, const struct PP_Point* top_left, const struct PP_Rect* src_rect))&Pnacl_M14_PPB _Graphics2D_PaintImageData,
3716 .Scroll = (void (*)(PP_Resource graphics_2d, const struct PP_Rect* clip_rect , const struct PP_Point* amount))&Pnacl_M14_PPB_Graphics2D_Scroll, 3716 .Scroll = (void (*)(PP_Resource graphics_2d, const struct PP_Rect* clip_rect , const struct PP_Point* amount))&Pnacl_M14_PPB_Graphics2D_Scroll,
3717 .ReplaceContents = (void (*)(PP_Resource graphics_2d, PP_Resource image_data ))&Pnacl_M14_PPB_Graphics2D_ReplaceContents, 3717 .ReplaceContents = (void (*)(PP_Resource graphics_2d, PP_Resource image_data ))&Pnacl_M14_PPB_Graphics2D_ReplaceContents,
3718 .Flush = (int32_t (*)(PP_Resource graphics_2d, struct PP_CompletionCallback callback))&Pnacl_M14_PPB_Graphics2D_Flush 3718 .Flush = (int32_t (*)(PP_Resource graphics_2d, struct PP_CompletionCallback callback))&Pnacl_M14_PPB_Graphics2D_Flush
3719 }; 3719 };
3720 3720
3721 struct PPB_Graphics2D_1_1 Pnacl_Wrappers_PPB_Graphics2D_1_1 = { 3721 struct PPB_Graphics2D_1_1 Pnacl_Wrappers_PPB_Graphics2D_1_1 = {
3722 .Create = (PP_Resource (*)(PP_Instance instance, const struct PP_Size* size, PP_Bool is_always_opaque))&Pnacl_M27_PPB_Graphics2D_Create, 3722 .Create = (PP_Resource (*)(PP_Instance instance, const struct PP_Size* size, PP_Bool is_always_opaque))&Pnacl_M27_PPB_Graphics2D_Create,
3723 .IsGraphics2D = (PP_Bool (*)(PP_Resource resource))&Pnacl_M27_PPB_Graphics2D _IsGraphics2D, 3723 .IsGraphics2D = (PP_Bool (*)(PP_Resource resource))&Pnacl_M27_PPB_Graphics2D _IsGraphics2D,
3724 .Describe = (PP_Bool (*)(PP_Resource graphics_2d, struct PP_Size* size, PP_B ool* is_always_opqaue))&Pnacl_M27_PPB_Graphics2D_Describe, 3724 .Describe = (PP_Bool (*)(PP_Resource graphics_2d, struct PP_Size* size, PP_B ool* is_always_opaque))&Pnacl_M27_PPB_Graphics2D_Describe,
3725 .PaintImageData = (void (*)(PP_Resource graphics_2d, PP_Resource image_data, const struct PP_Point* top_left, const struct PP_Rect* src_rect))&Pnacl_M27_PPB _Graphics2D_PaintImageData, 3725 .PaintImageData = (void (*)(PP_Resource graphics_2d, PP_Resource image_data, const struct PP_Point* top_left, const struct PP_Rect* src_rect))&Pnacl_M27_PPB _Graphics2D_PaintImageData,
3726 .Scroll = (void (*)(PP_Resource graphics_2d, const struct PP_Rect* clip_rect , const struct PP_Point* amount))&Pnacl_M27_PPB_Graphics2D_Scroll, 3726 .Scroll = (void (*)(PP_Resource graphics_2d, const struct PP_Rect* clip_rect , const struct PP_Point* amount))&Pnacl_M27_PPB_Graphics2D_Scroll,
3727 .ReplaceContents = (void (*)(PP_Resource graphics_2d, PP_Resource image_data ))&Pnacl_M27_PPB_Graphics2D_ReplaceContents, 3727 .ReplaceContents = (void (*)(PP_Resource graphics_2d, PP_Resource image_data ))&Pnacl_M27_PPB_Graphics2D_ReplaceContents,
3728 .Flush = (int32_t (*)(PP_Resource graphics_2d, struct PP_CompletionCallback callback))&Pnacl_M27_PPB_Graphics2D_Flush, 3728 .Flush = (int32_t (*)(PP_Resource graphics_2d, struct PP_CompletionCallback callback))&Pnacl_M27_PPB_Graphics2D_Flush,
3729 .SetScale = (PP_Bool (*)(PP_Resource resource, float scale))&Pnacl_M27_PPB_G raphics2D_SetScale, 3729 .SetScale = (PP_Bool (*)(PP_Resource resource, float scale))&Pnacl_M27_PPB_G raphics2D_SetScale,
3730 .GetScale = (float (*)(PP_Resource resource))&Pnacl_M27_PPB_Graphics2D_GetSc ale 3730 .GetScale = (float (*)(PP_Resource resource))&Pnacl_M27_PPB_Graphics2D_GetSc ale
3731 }; 3731 };
3732 3732
3733 struct PPB_Graphics3D_1_0 Pnacl_Wrappers_PPB_Graphics3D_1_0 = { 3733 struct PPB_Graphics3D_1_0 Pnacl_Wrappers_PPB_Graphics3D_1_0 = {
3734 .GetAttribMaxValue = (int32_t (*)(PP_Resource instance, int32_t attribute, i nt32_t* value))&Pnacl_M15_PPB_Graphics3D_GetAttribMaxValue, 3734 .GetAttribMaxValue = (int32_t (*)(PP_Resource instance, int32_t attribute, i nt32_t* value))&Pnacl_M15_PPB_Graphics3D_GetAttribMaxValue,
(...skipping 1963 matching lines...) Expand 10 before | Expand all | Expand 10 after
5698 if (NULL == iface) return NULL; 5698 if (NULL == iface) return NULL;
5699 wrapper->real_iface = iface; 5699 wrapper->real_iface = iface;
5700 } 5700 }
5701 5701
5702 if (wrapper->wrapped_iface) { 5702 if (wrapper->wrapped_iface) {
5703 return wrapper->wrapped_iface; 5703 return wrapper->wrapped_iface;
5704 } else { 5704 } else {
5705 return wrapper->real_iface; 5705 return wrapper->real_iface;
5706 } 5706 }
5707 } 5707 }
OLDNEW
« no previous file with comments | « ppapi/c/ppb_graphics_2d.h ('k') | ppapi/ppapi_shared.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698