Lines Matching defs:graphics
43 /** Returns a refed resource corresponding to the created graphics 2d. */
46 PP_Resource graphics;
48 graphics = g_graphics_2d_interface->Create(instance, size, PP_FALSE);
49 if (!graphics)
52 if (!g_instance_interface->BindGraphics(instance, graphics)) {
53 g_core_interface->ReleaseResource(graphics);
56 return graphics;
64 PP_Resource image, graphics;
86 /* Create the graphics 2d and paint the image to it. */
87 graphics = MakeAndBindGraphics2D(instance->pp_instance, size);
88 if (!graphics) {
93 g_graphics_2d_interface->ReplaceContents(graphics, image);
94 g_graphics_2d_interface->Flush(graphics,
97 g_core_interface->ReleaseResource(graphics);