Home
last modified time | relevance | path

Searched refs:drawable (Results 1 – 25 of 261) sorted by relevance

1234567891011

/external/mesa3d/src/gallium/state_trackers/dri/sw/
Ddri_drawable.c50 struct dri_drawable *drawable = in dri_st_framebuffer_validate() local
52 struct dri_screen *screen = dri_screen(drawable->sPriv); in dri_st_framebuffer_validate()
63 new_mask = (statt_mask & ~drawable->texture_mask); in dri_st_framebuffer_validate()
71 lastStamp = drawable->dPriv->lastStamp; in dri_st_framebuffer_validate()
72 new_stamp = (drawable->texture_stamp != lastStamp); in dri_st_framebuffer_validate()
75 if (new_stamp && drawable->update_drawable_info) in dri_st_framebuffer_validate()
76 drawable->update_drawable_info(drawable); in dri_st_framebuffer_validate()
78 drawable->allocate_textures(drawable, statts, count); in dri_st_framebuffer_validate()
82 if (drawable->textures[i]) in dri_st_framebuffer_validate()
86 drawable->texture_stamp = lastStamp; in dri_st_framebuffer_validate()
[all …]
Ddrisw.c85 drisw_update_drawable_info(struct dri_drawable *drawable) in drisw_update_drawable_info() argument
87 __DRIdrawable *dPriv = drawable->dPriv; in drisw_update_drawable_info()
94 drisw_put_image(struct dri_drawable *drawable, in drisw_put_image() argument
97 __DRIdrawable *dPriv = drawable->dPriv; in drisw_put_image()
106 struct dri_drawable *drawable = dri_drawable(dPriv); in drisw_present_texture() local
107 struct dri_screen *screen = dri_screen(drawable->sPriv); in drisw_present_texture()
112 screen->base.screen->flush_frontbuffer(screen->base.screen, ptex, 0, 0, drawable); in drisw_present_texture()
118 struct dri_drawable *drawable = dri_drawable(dPriv); in drisw_invalidate_drawable() local
120 drawable->texture_stamp = dPriv->lastStamp - 1; in drisw_invalidate_drawable()
122 p_atomic_inc(&drawable->base.stamp); in drisw_invalidate_drawable()
[all …]
/external/mesa3d/src/gallium/state_trackers/dri/common/
Ddri_drawable.c50 struct dri_drawable *drawable = in dri_st_framebuffer_validate() local
52 struct dri_screen *screen = dri_screen(drawable->sPriv); in dri_st_framebuffer_validate()
63 new_mask = (statt_mask & ~drawable->texture_mask); in dri_st_framebuffer_validate()
71 lastStamp = drawable->dPriv->lastStamp; in dri_st_framebuffer_validate()
72 new_stamp = (drawable->texture_stamp != lastStamp); in dri_st_framebuffer_validate()
75 if (new_stamp && drawable->update_drawable_info) in dri_st_framebuffer_validate()
76 drawable->update_drawable_info(drawable); in dri_st_framebuffer_validate()
78 drawable->allocate_textures(drawable, statts, count); in dri_st_framebuffer_validate()
82 if (drawable->textures[i]) in dri_st_framebuffer_validate()
86 drawable->texture_stamp = lastStamp; in dri_st_framebuffer_validate()
[all …]
/external/mesa3d/src/gallium/state_trackers/dri/drm/
Ddri_drawable.c50 struct dri_drawable *drawable = in dri_st_framebuffer_validate() local
52 struct dri_screen *screen = dri_screen(drawable->sPriv); in dri_st_framebuffer_validate()
63 new_mask = (statt_mask & ~drawable->texture_mask); in dri_st_framebuffer_validate()
71 lastStamp = drawable->dPriv->lastStamp; in dri_st_framebuffer_validate()
72 new_stamp = (drawable->texture_stamp != lastStamp); in dri_st_framebuffer_validate()
75 if (new_stamp && drawable->update_drawable_info) in dri_st_framebuffer_validate()
76 drawable->update_drawable_info(drawable); in dri_st_framebuffer_validate()
78 drawable->allocate_textures(drawable, statts, count); in dri_st_framebuffer_validate()
82 if (drawable->textures[i]) in dri_st_framebuffer_validate()
86 drawable->texture_stamp = lastStamp; in dri_st_framebuffer_validate()
[all …]
Ddri2.c50 struct dri_drawable *drawable = dri_drawable(dPriv); in dri2_flush_drawable() local
52 struct pipe_resource *ptex = drawable->textures[ST_ATTACHMENT_BACK_LEFT]; in dri2_flush_drawable()
55 if (ptex && ctx->pp && drawable->textures[ST_ATTACHMENT_DEPTH_STENCIL]) in dri2_flush_drawable()
56 pp_run(ctx->pp, ptex, ptex, drawable->textures[ST_ATTACHMENT_DEPTH_STENCIL]); in dri2_flush_drawable()
65 struct dri_drawable *drawable = dri_drawable(dPriv); in dri2_invalidate_drawable() local
68 drawable->dPriv->lastStamp = drawable->dPriv->dri2.stamp; in dri2_invalidate_drawable()
70 p_atomic_inc(&drawable->base.stamp); in dri2_invalidate_drawable()
83 dri2_drawable_get_buffers(struct dri_drawable *drawable, in dri2_drawable_get_buffers() argument
87 __DRIdrawable *dri_drawable = drawable->dPriv; in dri2_drawable_get_buffers()
88 struct __DRIdri2LoaderExtensionRec *loader = drawable->sPriv->dri2.loader; in dri2_drawable_get_buffers()
[all …]
/external/mesa3d/src/glx/apple/
Dapple_glx_context.c150 ac->drawable = NULL; in apple_glx_create_context()
258 if (ac->drawable) { in apple_glx_destroy_context()
259 ac->drawable->destroy(ac->drawable); in apple_glx_destroy_context()
283 GLXDrawable drawable) in apple_glx_make_current_context() argument
293 __func__, (void *) oldac, (void *) ac, drawable); in apple_glx_make_current_context()
302 if (ac && ac->drawable && ac->drawable->drawable == drawable) { in apple_glx_make_current_context()
320 if (oldac->drawable) { in apple_glx_make_current_context()
321 oldac->drawable->destroy(oldac->drawable); in apple_glx_make_current_context()
322 oldac->drawable = NULL; in apple_glx_make_current_context()
332 if (None == drawable) { in apple_glx_make_current_context()
[all …]
Dglx_empty.c56 glXJoinSwapGroupSGIX(Display * dpy, GLXDrawable drawable, GLXDrawable member) in glXJoinSwapGroupSGIX() argument
59 (void) drawable; in glXJoinSwapGroupSGIX()
68 glXBindSwapBarrierSGIX(Display * dpy, GLXDrawable drawable, int barrier) in glXBindSwapBarrierSGIX() argument
71 (void) drawable; in glXBindSwapBarrierSGIX()
89 glXGetSyncValuesOML(Display * dpy, GLXDrawable drawable, in glXGetSyncValuesOML() argument
93 (void) drawable; in glXGetSyncValuesOML()
101 glXSwapBuffersMscOML(Display * dpy, GLXDrawable drawable, in glXSwapBuffersMscOML() argument
105 (void) drawable; in glXSwapBuffersMscOML()
114 glXWaitForMscOML(Display * dpy, GLXDrawable drawable, in glXWaitForMscOML() argument
120 (void) drawable; in glXWaitForMscOML()
[all …]
Dapple_glx_surface.c48 update_viewport_and_scissor(Display * dpy, GLXDrawable drawable) in update_viewport_and_scissor() argument
54 XGetGeometry(dpy, drawable, &root, &x, &y, &width, &height, &bd, &depth); in update_viewport_and_scissor()
84 update_viewport_and_scissor(ac->drawable->display, in surface_make_current()
85 ac->drawable->drawable); in surface_make_current()
89 apple_glx_diagnostic("%s: drawable 0x%lx\n", __func__, d->drawable); in surface_make_current()
119 d->drawable); in surface_destroy()
123 d->drawable, s->uid); in surface_destroy()
139 assert(None != d->drawable); in create_surface()
143 if (XAppleDRICreateSurface(dpy, screen, d->drawable, id, key, &s->uid)) { in create_surface()
154 " with uid %u\n", __func__, d->drawable, s->uid); in create_surface()
[all …]
Dapple_glx_drawable.c73 apple_glx_find_drawable(Display * dpy, GLXDrawable drawable) in apple_glx_find_drawable() argument
80 if (i->drawable == drawable) { in apple_glx_find_drawable()
239 common_init(Display * dpy, GLXDrawable drawable, struct apple_glx_drawable *d) in common_init() argument
246 d->drawable = drawable; in common_init()
320 GLXDrawable drawable, in apple_glx_drawable_create() argument
333 common_init(dpy, drawable, d); in apple_glx_drawable_create()
404 XGetGeometry(dpy, d->drawable, &root, &x, &y, &width, &height, &bd, in apple_glx_garbage_collect_drawables()
442 apple_glx_drawable_find_by_type(GLXDrawable drawable, int type, int flags) in apple_glx_drawable_find_by_type() argument
449 if (d->type == type && d->drawable == drawable) { in apple_glx_drawable_find_by_type()
468 apple_glx_drawable_find(GLXDrawable drawable, int flags) in apple_glx_drawable_find() argument
[all …]
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/res/
DDrawableResourceLoaderTest.java3 import android.graphics.drawable.Drawable;
4 import android.graphics.drawable.LayerDrawable;
5 import android.graphics.drawable.StateListDrawable;
52 assertTrue(resourceLoader.isXml(R.drawable.rainbow)); in testIsXml_rainbow()
57 assertTrue(resourceLoader.isXml(android.R.drawable.ic_popup_sync)); in testIsXml_shouldWorkWithSystem()
62 boolean result = resourceLoader.isXml(R.drawable.l0_red); in testIsXml_red()
68 int[] expected = { R.drawable.l7_white, R.drawable.l0_red, in testGetDrawableIds()
69 R.drawable.l1_orange, R.drawable.l2_yellow, in testGetDrawableIds()
70 R.drawable.l3_green, R.drawable.l4_blue, R.drawable.l5_indigo, in testGetDrawableIds()
71 R.drawable.l6_violet }; in testGetDrawableIds()
[all …]
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DBitmapDrawableTest.java8 import android.graphics.drawable.BitmapDrawable;
9 import android.graphics.drawable.Drawable;
35 BitmapDrawable drawable = (BitmapDrawable) resources.getDrawable(R.drawable.an_image); in getBitmap_shouldReturnBitmapUsedToDraw() local
36 …assertEquals("Bitmap for resource:drawable/an_image", shadowOf(drawable.getBitmap()).getDescriptio… in getBitmap_shouldReturnBitmapUsedToDraw()
41 BitmapDrawable drawable = (BitmapDrawable) resources.getDrawable(R.drawable.an_image); in draw_shouldCopyDescriptionToCanvas() local
43 drawable.draw(canvas); in draw_shouldCopyDescriptionToCanvas()
51 …BitmapDrawable drawable = (BitmapDrawable) Drawable.createFromStream(emptyInputStream, "source str… in shouldInheritSourceStringFromDrawableDotCreateFromStream() local
52 assertEquals("source string value", shadowOf(drawable).getSource()); in shouldInheritSourceStringFromDrawableDotCreateFromStream()
57 BitmapDrawable drawable = (BitmapDrawable) resources.getDrawable(R.drawable.an_image); in withColorFilterSet_draw_shouldCopyDescriptionToCanvas() local
58 drawable.setColorFilter(new ColorMatrixColorFilter(new ColorMatrix())); in withColorFilterSet_draw_shouldCopyDescriptionToCanvas()
[all …]
DDrawableTest.java7 import android.graphics.drawable.Drawable;
34 …Drawable drawable = ShadowDrawable.createFromStream(new ByteArrayInputStream(new byte[0]), "my_sou… in createFromStream__shouldReturnDrawableWithSpecificSource() local
35 assertNotNull(drawable); in createFromStream__shouldReturnDrawableWithSpecificSource()
36 assertEquals("my_source", ((ShadowBitmapDrawable) shadowOf(drawable)).getSource()); in createFromStream__shouldReturnDrawableWithSpecificSource()
51 Drawable drawable = Drawable.createFromStream(byteInputStream, "src name"); in testCreateFromStream_shouldSetTheInputStreamOnTheReturnedDrawable() local
52 assertThat(shadowOf(drawable).getInputStream(), equalTo((InputStream) byteInputStream)); in testCreateFromStream_shouldSetTheInputStreamOnTheReturnedDrawable()
57 …Drawable drawable = ShadowDrawable.createFromStream(new ByteArrayInputStream(new byte[0]), "my_sou… in copyBoundsWithPassedRect() local
58 drawable.setBounds(1, 2, 3, 4); in copyBoundsWithPassedRect()
60 drawable.copyBounds(r); in copyBoundsWithPassedRect()
69 …Drawable drawable = ShadowDrawable.createFromStream(new ByteArrayInputStream(new byte[0]), "my_sou… in copyBoundsToReturnedRect() local
[all …]
/external/skia/src/animator/
DSkDrawGroup.cpp66 SkADrawable* drawable = *ptr; in contains() local
67 if (drawable == match || drawable->contains(match)) in contains()
97 SkADrawable* drawable = *ptr; in doEvent() local
98 if (drawable->isDrawable() == false) in doEvent()
100 handled |= drawable->doEvent(kind, state); in doEvent()
109 SkADrawable* drawable = *ptr; in draw() local
110 if (drawable->isDrawable() == false) in draw()
113 if (drawable->isApply()) in draw()
114 ((SkApply*) drawable)->disable(); in draw()
118 result |= drawable->draw(maker); in draw()
[all …]
/external/mesa3d/src/glx/
Dglx_pbuffer.c82 ChangeDrawableAttribute(Display * dpy, GLXDrawable drawable, in ChangeDrawableAttribute() argument
93 if ((dpy == NULL) || (drawable == 0)) { in ChangeDrawableAttribute()
111 req->drawable = drawable; in ChangeDrawableAttribute()
124 output[0] = (CARD32) drawable; in ChangeDrawableAttribute()
135 pdraw = GetGLXDRIDrawable(dpy, drawable); in ChangeDrawableAttribute()
192 XID drawable, XID glxdrawable, in CreateDRIDrawable() argument
203 pdraw = psc->driScreen->createDrawable(psc, drawable, in CreateDRIDrawable()
222 DestroyDRIDrawable(Display *dpy, GLXDrawable drawable, int destroy_xdrawable) in DestroyDRIDrawable() argument
225 __GLXDRIdrawable *pdraw = GetGLXDRIDrawable(dpy, drawable); in DestroyDRIDrawable()
231 __glxHashDelete(priv->drawHash, drawable); in DestroyDRIDrawable()
[all …]
Ddri2.h62 DRI2CreateDrawable(Display * display, XID drawable);
68 DRI2GetBuffers(Display * dpy, XID drawable,
78 DRI2GetBuffersWithFormat(Display * dpy, XID drawable,
84 DRI2CopyRegion(Display * dpy, XID drawable,
89 DRI2SwapBuffers(Display *dpy, XID drawable, CARD64 target_msc, CARD64 divisor,
93 DRI2GetMSC(Display *dpy, XID drawable, CARD64 *ust, CARD64 *msc, CARD64 *sbc);
96 DRI2WaitMSC(Display *dpy, XID drawable, CARD64 target_msc, CARD64 divisor,
100 DRI2WaitSBC(Display *dpy, XID drawable, CARD64 target_sbc, CARD64 *ust,
104 DRI2SwapInterval(Display *dpy, XID drawable, int interval);
Ddri2.c104 pdraw = dri2GetGlxDrawableFromXDrawableId(dpy, awire->drawable); in DRI2WireToEvent()
107 aevent->type = dri2GetSwapEventType(dpy, awire->drawable); in DRI2WireToEvent()
114 aevent->drawable = awire->drawable; in DRI2WireToEvent()
132 glxDraw = GetGLXDrawable(dpy, pdraw->drawable); in DRI2WireToEvent()
146 dri2InvalidateBuffers(dpy, awire->drawable); in DRI2WireToEvent()
364 DRI2CreateDrawable(Display * dpy, XID drawable) in DRI2CreateDrawable() argument
375 req->drawable = drawable; in DRI2CreateDrawable()
381 DRI2DestroyDrawable(Display * dpy, XID drawable) in DRI2DestroyDrawable() argument
394 req->drawable = drawable; in DRI2DestroyDrawable()
400 DRI2GetBuffers(Display * dpy, XID drawable, in DRI2GetBuffers() argument
[all …]
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/drawable/
DDrawableResource.java1 package com.bumptech.glide.load.resource.drawable;
3 import android.graphics.drawable.Drawable;
17 protected final T drawable; field in DrawableResource
20 public DrawableResource(T drawable) { in DrawableResource() argument
21 if (drawable == null) { in DrawableResource()
24 this.drawable = drawable; in DrawableResource()
33 return drawable; in get()
35 return (T) drawable.getConstantState().newDrawable(); in get()
/external/replicaisland/src/com/replica/replicaisland/
DLevelBuilder.java59 backgroundResource = R.drawable.background_sunset; in buildBackground()
62 backgroundResource = R.drawable.background_island; in buildBackground()
65 backgroundResource = R.drawable.background_sewage; in buildBackground()
68 backgroundResource = R.drawable.background_underground; in buildBackground()
71 backgroundResource = R.drawable.background_grass2; in buildBackground()
74 backgroundResource = R.drawable.background_island2; in buildBackground()
77 backgroundResource = R.drawable.background_lab01; in buildBackground()
126 tileMapIndex = R.drawable.grass; in addTileMapLayer()
129 tileMapIndex = R.drawable.island; in addTileMapLayer()
132 tileMapIndex = R.drawable.sewage; in addTileMapLayer()
[all …]
DGameObjectFactory.java317 textureLibrary.allocateTexture(R.drawable.dust01);
318 textureLibrary.allocateTexture(R.drawable.dust02);
319 textureLibrary.allocateTexture(R.drawable.dust03);
320 textureLibrary.allocateTexture(R.drawable.dust04);
321 textureLibrary.allocateTexture(R.drawable.dust05);
323 textureLibrary.allocateTexture(R.drawable.effect_energyball01);
324 textureLibrary.allocateTexture(R.drawable.effect_energyball02);
325 textureLibrary.allocateTexture(R.drawable.effect_energyball03);
326 textureLibrary.allocateTexture(R.drawable.effect_energyball04);
328 textureLibrary.allocateTexture(R.drawable.effect_explosion_small01);
[all …]
/external/mesa3d/src/mesa/drivers/dri/intel/
Dintel_context.c246 __DRIdrawable *drawable) in intel_downsample_for_dri2_flush() argument
255 struct gl_framebuffer *fb = drawable->driverPrivate; in intel_downsample_for_dri2_flush()
315 __DRIdrawable *drawable,
321 __DRIdrawable *drawable,
327 intel_update_renderbuffers(__DRIcontext *context, __DRIdrawable *drawable) in intel_update_renderbuffers() argument
329 struct gl_framebuffer *fb = drawable->driverPrivate; in intel_update_renderbuffers()
350 drawable->lastStamp = drawable->dri2.stamp; in intel_update_renderbuffers()
353 fprintf(stderr, "enter %s, drawable %p\n", __func__, drawable); in intel_update_renderbuffers()
355 intel_query_dri2_buffers(intel, drawable, &buffers, &count); in intel_update_renderbuffers()
389 intel_process_dri2_buffer(intel, drawable, &buffers[i], rb, region_name); in intel_update_renderbuffers()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dintel_context.c246 __DRIdrawable *drawable) in intel_downsample_for_dri2_flush() argument
255 struct gl_framebuffer *fb = drawable->driverPrivate; in intel_downsample_for_dri2_flush()
315 __DRIdrawable *drawable,
321 __DRIdrawable *drawable,
327 intel_update_renderbuffers(__DRIcontext *context, __DRIdrawable *drawable) in intel_update_renderbuffers() argument
329 struct gl_framebuffer *fb = drawable->driverPrivate; in intel_update_renderbuffers()
350 drawable->lastStamp = drawable->dri2.stamp; in intel_update_renderbuffers()
353 fprintf(stderr, "enter %s, drawable %p\n", __func__, drawable); in intel_update_renderbuffers()
355 intel_query_dri2_buffers(intel, drawable, &buffers, &count); in intel_update_renderbuffers()
389 intel_process_dri2_buffer(intel, drawable, &buffers[i], rb, region_name); in intel_update_renderbuffers()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_context.c246 __DRIdrawable *drawable) in intel_downsample_for_dri2_flush() argument
255 struct gl_framebuffer *fb = drawable->driverPrivate; in intel_downsample_for_dri2_flush()
315 __DRIdrawable *drawable,
321 __DRIdrawable *drawable,
327 intel_update_renderbuffers(__DRIcontext *context, __DRIdrawable *drawable) in intel_update_renderbuffers() argument
329 struct gl_framebuffer *fb = drawable->driverPrivate; in intel_update_renderbuffers()
350 drawable->lastStamp = drawable->dri2.stamp; in intel_update_renderbuffers()
353 fprintf(stderr, "enter %s, drawable %p\n", __func__, drawable); in intel_update_renderbuffers()
355 intel_query_dri2_buffers(intel, drawable, &buffers, &count); in intel_update_renderbuffers()
389 intel_process_dri2_buffer(intel, drawable, &buffers[i], rb, region_name); in intel_update_renderbuffers()
[all …]
/external/mesa3d/src/mesa/drivers/dri/r200/
Dradeon_common_context.c307 __DRIdrawable *drawable; in radeon_prepare_render() local
314 drawable = driContext->driDrawablePriv; in radeon_prepare_render()
315 if (drawable->dri2.stamp != driContext->dri2.draw_stamp) { in radeon_prepare_render()
316 if (drawable->lastStamp != drawable->dri2.stamp) in radeon_prepare_render()
317 radeon_update_renderbuffers(driContext, drawable, GL_FALSE); in radeon_prepare_render()
322 driContext->dri2.draw_stamp = drawable->dri2.stamp; in radeon_prepare_render()
325 drawable = driContext->driReadablePriv; in radeon_prepare_render()
326 if (drawable->dri2.stamp != driContext->dri2.read_stamp) { in radeon_prepare_render()
327 if (drawable->lastStamp != drawable->dri2.stamp) in radeon_prepare_render()
328 radeon_update_renderbuffers(driContext, drawable, GL_FALSE); in radeon_prepare_render()
[all …]
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_common_context.c307 __DRIdrawable *drawable; in radeon_prepare_render() local
314 drawable = driContext->driDrawablePriv; in radeon_prepare_render()
315 if (drawable->dri2.stamp != driContext->dri2.draw_stamp) { in radeon_prepare_render()
316 if (drawable->lastStamp != drawable->dri2.stamp) in radeon_prepare_render()
317 radeon_update_renderbuffers(driContext, drawable, GL_FALSE); in radeon_prepare_render()
322 driContext->dri2.draw_stamp = drawable->dri2.stamp; in radeon_prepare_render()
325 drawable = driContext->driReadablePriv; in radeon_prepare_render()
326 if (drawable->dri2.stamp != driContext->dri2.read_stamp) { in radeon_prepare_render()
327 if (drawable->lastStamp != drawable->dri2.stamp) in radeon_prepare_render()
328 radeon_update_renderbuffers(driContext, drawable, GL_FALSE); in radeon_prepare_render()
[all …]
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/gif/
DGifDrawableResource.java3 import com.bumptech.glide.load.resource.drawable.DrawableResource;
10 public GifDrawableResource(GifDrawable drawable) { in GifDrawableResource() argument
11 super(drawable); in GifDrawableResource()
16 return drawable.getData().length + Util.getBitmapByteSize(drawable.getFirstFrame()); in getSize()
21 drawable.stop(); in recycle()
22 drawable.recycle(); in recycle()

1234567891011