/third_party/python/Lib/test/ |
D | test_gc.py | 10 import gc 90 gc.collect() 92 self.assertEqual(gc.collect(), 1) 97 gc.collect() 99 self.assertEqual(gc.collect(), 1) 106 gc.collect() 109 self.assertEqual(gc.collect(), 2) 115 gc.collect() 117 self.assertNotEqual(gc.collect(), 0) 122 gc.collect() [all …]
|
D | test_finalization.py | 6 import gc 50 gc.garbage.clear() 51 gc.collect() 136 self.old_garbage = gc.garbage[:] 137 gc.garbage[:] = [] 142 self.assertEqual(gc.garbage, []) 145 gc.collect() 157 self.assertEqual(sorted(id(x) for x in gc.garbage), sorted(ids)) 174 gc.collect() 178 gc.collect() [all …]
|
/third_party/mesa3d/src/glx/ |
D | indirect_glx.c | 50 __glFreeAttributeState(struct glx_context * gc) in __glFreeAttributeState() argument 54 for (spp = &gc->attributes.stack[0]; in __glFreeAttributeState() 55 spp < &gc->attributes.stack[__GL_CLIENT_ATTRIB_STACK_DEPTH]; spp++) { in __glFreeAttributeState() 67 indirect_destroy_context(struct glx_context *gc) in indirect_destroy_context() argument 69 __glXFreeVertexArrayState(gc); in indirect_destroy_context() 71 free((char *) gc->vendor); in indirect_destroy_context() 72 free((char *) gc->renderer); in indirect_destroy_context() 73 free((char *) gc->version); in indirect_destroy_context() 74 free((char *) gc->extensions); in indirect_destroy_context() 75 __glFreeAttributeState(gc); in indirect_destroy_context() [all …]
|
D | applegl_glx.c | 46 applegl_destroy_context(struct glx_context *gc) in applegl_destroy_context() argument 48 apple_glx_destroy_context(&gc->driContext, gc->psc->dpy); in applegl_destroy_context() 53 struct glx_context *gc, struct glx_context *old, in applegl_bind_context() argument 56 Display *dpy = gc->psc->dpy; in applegl_bind_context() 60 gc ? gc->driContext : NULL, draw); in applegl_bind_context() 72 applegl_unbind_context(struct glx_context *gc, struct glx_context *new) in applegl_unbind_context() argument 78 if (!gc) in applegl_unbind_context() 85 dpy = gc->psc->dpy; in applegl_unbind_context() 89 (gc != &dummyContext) ? gc->driContext : NULL, in applegl_unbind_context() 96 applegl_wait_gl(struct glx_context *gc) in applegl_wait_gl() argument [all …]
|
D | pixelstore.c | 50 send_PixelStore(struct glx_context * gc, unsigned sop, GLenum pname, in send_PixelStore() argument 53 Display *const dpy = gc->currentDpy; in send_PixelStore() 56 GLubyte const *pc = __glXSetupSingleRequest(gc, sop, cmdlen); in send_PixelStore() 71 struct glx_context *gc = __glXGetCurrentContext(); in __indirect_glPixelStoref() local 72 __GLXattribute *state = gc->client_state_private; in __indirect_glPixelStoref() 73 Display *dpy = gc->currentDpy; in __indirect_glPixelStoref() 83 __glXSetError(gc, GL_INVALID_VALUE); in __indirect_glPixelStoref() 91 __glXSetError(gc, GL_INVALID_VALUE); in __indirect_glPixelStoref() 99 __glXSetError(gc, GL_INVALID_VALUE); in __indirect_glPixelStoref() 107 __glXSetError(gc, GL_INVALID_VALUE); in __indirect_glPixelStoref() [all …]
|
D | indirect_vertex_array.c | 89 static GLboolean validate_mode(struct glx_context * gc, GLenum mode); 90 static GLboolean validate_count(struct glx_context * gc, GLsizei count); 91 static GLboolean validate_type(struct glx_context * gc, GLenum type); 114 __glXFreeVertexArrayState(struct glx_context * gc) in __glXFreeVertexArrayState() argument 116 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private); in __glXFreeVertexArrayState() 142 __glXInitVertexArrayState(struct glx_context * gc) in __glXInitVertexArrayState() argument 144 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private); in __glXInitVertexArrayState() 159 __glXSetError(gc, GL_OUT_OF_MEMORY); in __glXInitVertexArrayState() 182 if (__glExtensionBitIsEnabled(gc, GL_EXT_fog_coord_bit) in __glXInitVertexArrayState() 183 || (gc->server_major > 1) || (gc->server_minor >= 4)) { in __glXInitVertexArrayState() [all …]
|
D | single2.c | 131 if (gc->error) { in __indirect_glGetError() 133 retval = gc->error; in __indirect_glGetError() 134 gc->error = GL_NO_ERROR; in __indirect_glGetError() 155 get_client_data(struct glx_context * gc, GLenum cap, GLintptr * data) in get_client_data() argument 158 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private); in get_client_data() 297 *data = (GLintptr) (gc->attributes.stackPointer - gc->attributes.stack); in get_client_data() 345 if (get_client_data(gc, val, &data)) { in __indirect_glGetBooleanv() 396 if (get_client_data(gc, val, &data)) { in __indirect_glGetDoublev() 447 if (get_client_data(gc, val, &data)) { in __indirect_glGetFloatv() 498 if (get_client_data(gc, val, &data)) { in __indirect_glGetIntegerv() [all …]
|
D | glxcmds.c | 258 glx_context_init(struct glx_context *gc, in glx_context_init() argument 261 gc->majorOpcode = __glXSetupForCommand(psc->display->dpy); in glx_context_init() 262 if (!gc->majorOpcode) in glx_context_init() 265 gc->screen = psc->scr; in glx_context_init() 266 gc->psc = psc; in glx_context_init() 267 gc->config = config; in glx_context_init() 268 gc->isDirect = GL_TRUE; in glx_context_init() 269 gc->currentContextTag = -1; in glx_context_init() 272 gc->renderType = GLX_DONT_CARE; in glx_context_init() 323 struct glx_context *gc; in CreateContext() local [all …]
|
D | render2.c | 53 __glXSetError(gc, GL_INVALID_ENUM); in __indirect_glMap1d() 57 __glXSetError(gc, GL_INVALID_VALUE); in __indirect_glMap1d() 62 if (!gc->currentDpy) in __indirect_glMap1d() 65 if (cmdlen <= gc->maxSmallRenderCommandSize) { in __indirect_glMap1d() 96 __glXSetError(gc, GL_OUT_OF_MEMORY); in __indirect_glMap1d() 100 __glXSendLargeCommand(gc, pc, 32, buf, compsize); in __indirect_glMap1d() 105 __glXSendLargeCommand(gc, pc, 32, pnts, compsize); in __indirect_glMap1d() 120 __glXSetError(gc, GL_INVALID_ENUM); in __indirect_glMap1f() 124 __glXSetError(gc, GL_INVALID_VALUE); in __indirect_glMap1f() 129 if (!gc->currentDpy) in __indirect_glMap1f() [all …]
|
D | indirect_vertex_program.c | 40 struct glx_context *gc = __glXGetCurrentContext(); in do_vertex_attrib_enable() local 41 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private); in do_vertex_attrib_enable() 45 __glXSetError(gc, GL_INVALID_ENUM); in do_vertex_attrib_enable() 68 struct glx_context *const gc = __glXGetCurrentContext(); in get_parameter() local 69 Display *const dpy = gc->currentDpy; in get_parameter() 73 GLubyte const *pc = __glXSetupVendorRequest(gc, in get_parameter() 125 struct glx_context *const gc = __glXGetCurrentContext(); in __indirect_glGetVertexAttribPointerv() local 126 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private); in __indirect_glGetVertexAttribPointerv() 129 __glXSetError(gc, GL_INVALID_ENUM); in __indirect_glGetVertexAttribPointerv() 134 __glXSetError(gc, GL_INVALID_VALUE); in __indirect_glGetVertexAttribPointerv() [all …]
|
D | clientattrib.c | 42 struct glx_context *gc = __glXGetCurrentContext(); in do_enable_disable() local 43 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private); in do_enable_disable() 51 __glXSetError(gc, GL_INVALID_ENUM); in do_enable_disable() 72 struct glx_context *gc = __glXGetCurrentContext(); in __indirect_glPushClientAttrib() local 73 __GLXattribute *state = (__GLXattribute *) (gc->client_state_private); in __indirect_glPushClientAttrib() 74 __GLXattribute **spp = gc->attributes.stackPointer, *sp; in __indirect_glPushClientAttrib() 76 if (spp < &gc->attributes.stack[__GL_CLIENT_ATTRIB_STACK_DEPTH]) { in __indirect_glPushClientAttrib() 80 __glXSetError(gc, GL_OUT_OF_MEMORY); in __indirect_glPushClientAttrib() 86 gc->attributes.stackPointer = spp + 1; in __indirect_glPushClientAttrib() 96 __glXSetError(gc, GL_STACK_OVERFLOW); in __indirect_glPushClientAttrib() [all …]
|
D | glxcurrent.c | 111 struct glx_context *gc = __glXGetCurrentContext(); in glXGetCurrentDrawable() local 112 return gc->currentDrawable; in glXGetCurrentDrawable() 125 struct glx_context *gc = (struct glx_context *) gc_user; in MakeContextCurrent() local 132 if ((gc != NULL) && (gc->xid == None)) { in MakeContextCurrent() 139 if (oldGC == gc && in MakeContextCurrent() 140 gc->currentDrawable == draw && gc->currentReadable == read) { in MakeContextCurrent() 153 oldGC->vtable->unbind(oldGC, gc); in MakeContextCurrent() 157 if (gc) { in MakeContextCurrent() 166 if (gc->vtable->bind(gc, oldGC, draw, read) != Success) { in MakeContextCurrent() 173 gc->currentDpy = dpy; in MakeContextCurrent() [all …]
|
D | create_context.c | 52 struct glx_context *gc = NULL; in glXCreateContextAttribsARB() local 109 gc = psc->vtable->create_context_attribs(psc, cfg, share, num_attribs, in glXCreateContextAttribsARB() 114 if (gc == NULL) { in glXCreateContextAttribsARB() 116 gc = applegl_create_context(psc, cfg, share, 0); in glXCreateContextAttribsARB() 118 gc = indirect_create_context_attribs(psc, cfg, share, num_attribs, in glXCreateContextAttribsARB() 141 gc ? gc->isDirect : direct, in glXCreateContextAttribsARB() 147 if (gc) in glXCreateContextAttribsARB() 148 gc->vtable->destroy(gc); in glXCreateContextAttribsARB() 149 gc = NULL; in glXCreateContextAttribsARB() 153 } else if (!gc) { in glXCreateContextAttribsARB() [all …]
|
D | renderpix.c | 81 __glXSendLargeImage(struct glx_context * gc, GLint compsize, GLint dim, in __glXSendLargeImage() argument 89 __glXSetError(gc, GL_OUT_OF_MEMORY); in __glXSendLargeImage() 95 __glFillImage(gc, dim, width, height, depth, format, type, in __glXSendLargeImage() 108 __glXSendLargeCommand(gc, gc->pc, pc - gc->pc, buf, compsize); in __glXSendLargeImage() 136 if (!gc->currentDpy) in __indirect_glSeparableFilter2D() 139 if (cmdlen <= gc->maxSmallRenderCommandSize) { in __indirect_glSeparableFilter2D() 150 __glFillImage(gc, 1, width, 1, 1, format, type, row, pc, in __indirect_glSeparableFilter2D() 155 __glFillImage(gc, 1, height, 1, 1, format, type, column, pc, NULL); in __indirect_glSeparableFilter2D() 182 __glXSetError(gc, GL_OUT_OF_MEMORY); in __indirect_glSeparableFilter2D() 185 __glFillImage(gc, 1, width, 1, 1, format, type, row, buf, in __indirect_glSeparableFilter2D() [all …]
|
D | packrender.h | 57 struct glx_context *gc; \ 62 gc = __glXGetCurrentContext(); \ 63 pc = gc->pc; \ 77 if (pc + (size) > gc->bufEnd) { \ 78 pc = __glXFlushRenderBuffer(gc, pc); \ 84 pc = __glXFlushRenderBuffer(gc, pc); \ 89 if (pc + (size) > gc->bufEnd) { \ 90 pc = __glXFlushRenderBuffer(gc, pc); \ 99 pc = __glXFlushRenderBuffer(gc, pc); \ 107 if (pc + (size) > gc->bufEnd) { \ [all …]
|
/third_party/gstreamer/gstplugins_bad/ext/opencv/ |
D | gstgrabcut.cpp | 293 GstGrabcut *gc = GST_GRABCUT (filter); in gst_grabcut_transform_ip() local 300 gc->facepos.x = (meta->x) - ((gc->scale - 1) * meta->w / 2); in gst_grabcut_transform_ip() 301 gc->facepos.y = (meta->y) - ((gc->scale - 1) * meta->h / 2); in gst_grabcut_transform_ip() 302 gc->facepos.width = meta->w * gc->scale * 0.9; in gst_grabcut_transform_ip() 303 gc->facepos.height = meta->h * gc->scale * 1.1; in gst_grabcut_transform_ip() 305 memset (static_cast < void *>(&(gc->facepos)), 0, sizeof (gc->facepos)); in gst_grabcut_transform_ip() 310 gc->cvA = channels.at (0); in gst_grabcut_transform_ip() 311 gc->cvB = channels.at (1); in gst_grabcut_transform_ip() 312 gc->cvC = channels.at (2); in gst_grabcut_transform_ip() 313 gc->cvD = channels.at (3); in gst_grabcut_transform_ip() [all …]
|
/third_party/python/Modules/ |
D | gcmodule.c | 135 return &interp->gc; in get_gc_state() 166 GCState *gcstate = &interp->gc; in _PyGC_Init() 324 PyGC_Head *gc; in gc_list_size() local 326 for (gc = GC_NEXT(list); gc != list; gc = GC_NEXT(gc)) { in gc_list_size() 336 PyGC_Head *gc; in gc_list_clear_collecting() local 337 for (gc = GC_NEXT(collectable); gc != collectable; gc = GC_NEXT(gc)) { in gc_list_clear_collecting() 338 gc_clear_collecting(gc); in gc_list_clear_collecting() 348 PyGC_Head *gc; in append_objects() local 349 for (gc = GC_NEXT(gc_list); gc != gc_list; gc = GC_NEXT(gc)) { in append_objects() 350 PyObject *op = FROM_GC(gc); in append_objects() [all …]
|
/third_party/icu/icu4c/source/samples/datecal/ |
D | cal.cpp | 28 GregorianCalendar* gc = new GregorianCalendar(status); in cpp_main() local 34 gc->set(2000, UCAL_FEBRUARY, 26); in cpp_main() 35 gc->set(UCAL_HOUR_OF_DAY, 23); in cpp_main() 36 gc->set(UCAL_MINUTE, 0); in cpp_main() 37 gc->set(UCAL_SECOND, 0); in cpp_main() 38 gc->set(UCAL_MILLISECOND, 0); in cpp_main() 44 gc->get(UCAL_YEAR, status), in cpp_main() 45 gc->get(UCAL_MONTH, status) + 1, in cpp_main() 46 gc->get(UCAL_MONTH, status), in cpp_main() 47 gc->get(UCAL_DATE, status)); in cpp_main() [all …]
|
/third_party/skia/third_party/externals/icu/source/samples/datecal/ |
D | cal.cpp | 26 GregorianCalendar* gc = new GregorianCalendar(status); in cpp_main() local 32 gc->set(2000, UCAL_FEBRUARY, 26); in cpp_main() 33 gc->set(UCAL_HOUR_OF_DAY, 23); in cpp_main() 34 gc->set(UCAL_MINUTE, 0); in cpp_main() 35 gc->set(UCAL_SECOND, 0); in cpp_main() 36 gc->set(UCAL_MILLISECOND, 0); in cpp_main() 42 gc->get(UCAL_YEAR, status), in cpp_main() 43 gc->get(UCAL_MONTH, status) + 1, in cpp_main() 44 gc->get(UCAL_MONTH, status), in cpp_main() 45 gc->get(UCAL_DATE, status)); in cpp_main() [all …]
|
/third_party/mesa3d/src/glx/apple/ |
D | apple_xgl_api_read.c | 53 struct glx_context *gc = __glXGetCurrentContext(); in SetRead() local 66 if (None != gc->currentReadable in SetRead() 67 && gc->currentReadable != gc->currentDrawable) { in SetRead() 72 if (apple_glx_make_current_context(dpy, gc->driContext, gc->driContext, in SetRead() 73 gc->currentReadable)) { in SetRead() 75 (void) apple_glx_make_current_context(dpy, gc->driContext, gc->driContext, in SetRead() 76 gc->currentDrawable); in SetRead() 86 struct glx_context *gc = __glXGetCurrentContext(); in UnsetRead() local 89 if (apple_glx_make_current_context(dpy, gc->driContext, gc->driContext, in UnsetRead() 90 gc->currentDrawable)) { in UnsetRead()
|
/third_party/mesa3d/src/glx/windows/ |
D | windowsgl.c | 67 windowsContext *gc; in windows_create_context() local 69 gc = calloc(1, sizeof *gc); in windows_create_context() 70 if (gc == NULL) in windows_create_context() 105 gc->pxfi = pxfi; in windows_create_context() 106 SetPixelFormat(hdc, gc->pxfi, NULL); in windows_create_context() 108 gc->ctx = wglCreateContext(hdc); in windows_create_context() 110 if (shared && gc->ctx) in windows_create_context() 111 wglShareLists(shared->ctx, gc->ctx); in windows_create_context() 116 if (!gc->ctx) in windows_create_context() 118 free(gc); in windows_create_context() [all …]
|
/third_party/python/Lib/test/dtracedata/ |
D | gc.d.expected | 1 gc-start:0 2 gc-done:0 3 gc-start:1 4 gc-done:0 5 gc-start:2 6 gc-done:0 7 gc-start:2 8 gc-done:1
|
/third_party/jerryscript/tests/jerry/es2015/ |
D | weakset.js | 23 gc (); /* This will remove the entry, but there is no way to validate it from js. */ 40 gc (); 42 gc (); 45 gc (); 51 gc (); 56 gc (); 65 gc (); 68 gc (); 71 gc(); 94 gc(); [all …]
|
/third_party/ffmpeg/libavformat/ |
D | rtpenc_vc2hq.c | 51 GetBitContext gc; in send_picture() local 62 init_get_bits(&gc, buf, 8 * size); in send_picture() 63 get_interleaved_ue_golomb(&gc); /* wavelet_idx */ in send_picture() 64 wavelet_depth = get_interleaved_ue_golomb(&gc); in send_picture() 65 get_interleaved_ue_golomb(&gc); /* num_x */ in send_picture() 66 get_interleaved_ue_golomb(&gc); /* num_y */ in send_picture() 67 prefix_bytes = get_interleaved_ue_golomb(&gc); in send_picture() 68 size_scaler = get_interleaved_ue_golomb(&gc); in send_picture() 70 get_interleaved_ue_golomb(&gc); in send_picture() 73 get_interleaved_ue_golomb(&gc); in send_picture() [all …]
|
/third_party/mesa3d/src/glx/tests/ |
D | create_context_unittest.cpp | 42 glx_context_init(struct glx_context *gc, in glx_context_init() argument 45 gc->majorOpcode = 123; in glx_context_init() 46 gc->screen = psc->scr; in glx_context_init() 47 gc->psc = psc; in glx_context_init() 48 gc->config = config; in glx_context_init() 49 gc->isDirect = GL_TRUE; in glx_context_init() 50 gc->currentContextTag = -1; in glx_context_init() 427 struct glx_context *gc = (struct glx_context *) ctx; in TEST_F() local 429 EXPECT_FALSE(gc->isDirect); in TEST_F() 439 struct glx_context *gc = (struct glx_context *) ctx; in TEST_F() local [all …]
|