Home
last modified time | relevance | path

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

12345678910>>...14

/external/mesa3d/src/gallium/state_trackers/dri/
Ddri_drawable.c54 struct dri_drawable *drawable = in dri_st_framebuffer_validate() local
56 struct dri_screen *screen = dri_screen(drawable->sPriv); in dri_st_framebuffer_validate()
62 drawable->stvis.samples > 1 ? drawable->msaa_textures in dri_st_framebuffer_validate()
63 : drawable->textures; in dri_st_framebuffer_validate()
70 new_mask = (statt_mask & ~drawable->texture_mask); in dri_st_framebuffer_validate()
78 lastStamp = drawable->dPriv->lastStamp; in dri_st_framebuffer_validate()
79 new_stamp = (drawable->texture_stamp != lastStamp); in dri_st_framebuffer_validate()
82 if (new_stamp && drawable->update_drawable_info) in dri_st_framebuffer_validate()
83 drawable->update_drawable_info(drawable); in dri_st_framebuffer_validate()
85 drawable->allocate_textures(ctx, drawable, statts, count); in dri_st_framebuffer_validate()
[all …]
Ddrisw.c116 drisw_update_drawable_info(struct dri_drawable *drawable) in drisw_update_drawable_info() argument
118 __DRIdrawable *dPriv = drawable->dPriv; in drisw_update_drawable_info()
125 drisw_get_image(struct dri_drawable *drawable, in drisw_get_image() argument
129 __DRIdrawable *dPriv = drawable->dPriv; in drisw_get_image()
137 drisw_put_image(struct dri_drawable *drawable, in drisw_put_image() argument
140 __DRIdrawable *dPriv = drawable->dPriv; in drisw_put_image()
146 drisw_put_image2(struct dri_drawable *drawable, in drisw_put_image2() argument
150 __DRIdrawable *dPriv = drawable->dPriv; in drisw_put_image2()
159 struct dri_drawable *drawable = dri_drawable(dPriv); in drisw_present_texture() local
160 struct dri_screen *screen = dri_screen(drawable->sPriv); in drisw_present_texture()
[all …]
Ddri2.c332 struct dri_drawable *drawable = dri_drawable(dPriv); in dri2_invalidate_drawable() local
335 drawable->dPriv->lastStamp = drawable->dPriv->dri2.stamp; in dri2_invalidate_drawable()
336 drawable->texture_mask = 0; in dri2_invalidate_drawable()
338 p_atomic_inc(&drawable->base.stamp); in dri2_invalidate_drawable()
353 dri2_drawable_get_buffers(struct dri_drawable *drawable, in dri2_drawable_get_buffers() argument
357 __DRIdrawable *dri_drawable = drawable->dPriv; in dri2_drawable_get_buffers()
358 const __DRIdri2LoaderExtension *loader = drawable->sPriv->dri2.loader; in dri2_drawable_get_buffers()
366 with_format = dri_with_format(drawable->sPriv); in dri2_drawable_get_buffers()
379 dri_drawable_get_format(drawable, atts[i], &format, &bind); in dri2_drawable_get_buffers()
455 dri_image_drawable_get_buffers(struct dri_drawable *drawable, in dri_image_drawable_get_buffers() argument
[all …]
/external/mesa3d/src/glx/apple/
Dapple_glx_context.c153 ac->drawable = NULL; in apple_glx_create_context()
261 if (ac->drawable) { in apple_glx_destroy_context()
262 ac->drawable->destroy(ac->drawable); in apple_glx_destroy_context()
286 GLXDrawable drawable) in apple_glx_make_current_context() argument
296 __func__, (void *) oldac, (void *) ac, drawable); in apple_glx_make_current_context()
305 if (ac && ac->drawable && ac->drawable->drawable == drawable) { in apple_glx_make_current_context()
323 if (oldac->drawable) { in apple_glx_make_current_context()
324 oldac->drawable->destroy(oldac->drawable); in apple_glx_make_current_context()
325 oldac->drawable = NULL; in apple_glx_make_current_context()
335 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 …]
Dappledri.c245 XAppleDRICreateSurface(dpy, screen, drawable, client_id, key, uid) in XAppleDRICreateSurface() argument
248 Drawable drawable;
265 req->drawable = drawable;
284 XAppleDRIDestroySurface(dpy, screen, drawable) in XAppleDRIDestroySurface() argument
287 Drawable drawable;
300 req->drawable = drawable;
308 XAppleDRICreateSharedBuffer(Display * dpy, int screen, Drawable drawable, in XAppleDRICreateSharedBuffer() argument
323 req->drawable = drawable; in XAppleDRICreateSharedBuffer()
357 XAppleDRISwapBuffers(Display * dpy, int screen, Drawable drawable) in XAppleDRISwapBuffers() argument
369 req->drawable = drawable; in XAppleDRISwapBuffers()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowBitmapDrawableTest.java14 import android.graphics.drawable.BitmapDrawable;
15 import android.graphics.drawable.Drawable;
34 BitmapDrawable drawable = new BitmapDrawable(bitmap); in constructors_shouldSetBitmap() local
35 assertThat(drawable.getBitmap()).isEqualTo(bitmap); in constructors_shouldSetBitmap()
37 drawable = new BitmapDrawable(resources, bitmap); in constructors_shouldSetBitmap()
38 assertThat(drawable.getBitmap()).isEqualTo(bitmap); in constructors_shouldSetBitmap()
43 BitmapDrawable drawable = (BitmapDrawable) resources.getDrawable(R.drawable.an_image); in getBitmap_shouldReturnBitmapUsedToDraw() local
44 …assertThat(shadowOf(drawable.getBitmap()).getDescription()).isEqualTo("Bitmap for resource:org.rob… in getBitmap_shouldReturnBitmapUsedToDraw()
49 BitmapDrawable original = (BitmapDrawable) resources.getDrawable(R.drawable.an_image); in mutate_createsDeepCopy()
60 BitmapDrawable drawable = (BitmapDrawable) resources.getDrawable(R.drawable.an_image); in draw_shouldCopyDescriptionToCanvas() local
[all …]
DShadowDrawableTest.java18 import android.graphics.drawable.BitmapDrawable;
19 import android.graphics.drawable.Drawable;
20 import android.graphics.drawable.VectorDrawable;
50 Drawable drawable = in createFromResourceStream_shouldWorkWithoutSourceName() local
57 assertNotNull(drawable); in createFromResourceStream_shouldWorkWithoutSourceName()
62 …Drawable drawable = ShadowDrawable.createFromStream(new ByteArrayInputStream(new byte[0]), "my_sou… in createFromStream__shouldReturnDrawableWithSpecificSource() local
63 assertNotNull(drawable); in createFromStream__shouldReturnDrawableWithSpecificSource()
64 assertEquals("my_source", ((ShadowBitmapDrawable) shadowOf(drawable)).getSource()); in createFromStream__shouldReturnDrawableWithSpecificSource()
79 Drawable drawable = Drawable.createFromStream(byteInputStream, "src name"); in testCreateFromStream_shouldSetTheInputStreamOnTheReturnedDrawable() local
80 assertThat(shadowOf(drawable).getInputStream()).isEqualTo((InputStream) byteInputStream); in testCreateFromStream_shouldSetTheInputStreamOnTheReturnedDrawable()
[all …]
/external/mesa3d/src/glx/
Dglx_pbuffer.c83 ChangeDrawableAttribute(Display * dpy, GLXDrawable drawable, in ChangeDrawableAttribute() argument
94 if ((priv == NULL) || (dpy == NULL) || (drawable == 0)) { in ChangeDrawableAttribute()
112 req->drawable = drawable; in ChangeDrawableAttribute()
125 output[0] = (CARD32) drawable; in ChangeDrawableAttribute()
136 pdraw = GetGLXDRIDrawable(dpy, drawable); in ChangeDrawableAttribute()
193 XID drawable, XID glxdrawable, in CreateDRIDrawable() argument
209 pdraw = psc->driScreen->createDrawable(psc, drawable, in CreateDRIDrawable()
228 DestroyDRIDrawable(Display *dpy, GLXDrawable drawable, int destroy_xdrawable) in DestroyDRIDrawable() argument
231 __GLXDRIdrawable *pdraw = GetGLXDRIDrawable(dpy, drawable); in DestroyDRIDrawable()
237 __glxHashDelete(priv->drawHash, drawable); in DestroyDRIDrawable()
[all …]
Dg_glxglvnddispatchfuncs.c111 static void dispatch_BindTexImageEXT(Display *dpy, GLXDrawable drawable, in dispatch_BindTexImageEXT() argument
117 dd = GetDispatchFromDrawable(dpy, drawable); in dispatch_BindTexImageEXT()
125 (*pBindTexImageEXT)(dpy, drawable, buffer, attrib_list); in dispatch_BindTexImageEXT()
398 static void dispatch_GetSelectedEventSGIX(Display *dpy, GLXDrawable drawable, in dispatch_GetSelectedEventSGIX() argument
404 dd = GetDispatchFromDrawable(dpy, drawable); in dispatch_GetSelectedEventSGIX()
412 (*pGetSelectedEventSGIX)(dpy, drawable, mask); in dispatch_GetSelectedEventSGIX()
495 static void dispatch_ReleaseTexImageEXT(Display *dpy, GLXDrawable drawable, in dispatch_ReleaseTexImageEXT() argument
501 dd = GetDispatchFromDrawable(dpy, drawable); in dispatch_ReleaseTexImageEXT()
509 (*pReleaseTexImageEXT)(dpy, drawable, buffer); in dispatch_ReleaseTexImageEXT()
514 static void dispatch_SelectEventSGIX(Display *dpy, GLXDrawable drawable, in dispatch_SelectEventSGIX() argument
[all …]
/external/mesa3d/src/mesa/drivers/dri/i915/
Dintel_context.c128 intel_update_image_buffers(struct intel_context *intel, __DRIdrawable *drawable);
138 __DRIdrawable *drawable,
144 __DRIdrawable *drawable,
150 intel_update_dri2_buffers(struct intel_context *intel, __DRIdrawable *drawable) in intel_update_dri2_buffers() argument
156 struct gl_framebuffer *fb = drawable->driverPrivate; in intel_update_dri2_buffers()
158 intel_query_dri2_buffers(intel, drawable, &buffers, &count); in intel_update_dri2_buffers()
192 intel_process_dri2_buffer(intel, drawable, &buffers[i], rb, region_name); in intel_update_dri2_buffers()
197 intel_update_renderbuffers(__DRIcontext *context, __DRIdrawable *drawable) in intel_update_renderbuffers() argument
205 drawable->lastStamp = drawable->dri2.stamp; in intel_update_renderbuffers()
208 fprintf(stderr, "enter %s, drawable %p\n", __func__, drawable); in intel_update_renderbuffers()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/
DDrawableResourceLoaderTest.java15 import android.graphics.drawable.BitmapDrawable;
16 import android.graphics.drawable.ColorDrawable;
17 import android.graphics.drawable.LayerDrawable;
18 import android.graphics.drawable.NinePatchDrawable;
19 import android.graphics.drawable.VectorDrawable;
41 ApplicationProvider.getApplicationContext().getResources().getDrawable(R.drawable.rainbow)); in testGetDrawable_rainbow()
46 assertNotNull(resources.getDrawable(android.R.drawable.ic_popup_sync)); in testGetDrawableBundle_shouldWorkWithSystem()
51 assertNotNull(Resources.getSystem().getDrawable(android.R.drawable.ic_menu_help)); in testGetDrawable_red()
56 assertThat(resources.getDrawable(R.drawable.l7_white)).isInstanceOf(BitmapDrawable.class); in testDrawableTypes()
57 assertThat(resources.getDrawable(R.drawable.l0_red)).isInstanceOf(BitmapDrawable.class); in testDrawableTypes()
[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/setupdesign/main/src/com/google/android/setupdesign/util/
DDrawableLayoutDirectionHelper.java21 import android.graphics.drawable.Drawable;
22 import android.graphics.drawable.InsetDrawable;
35 Drawable drawable, int insetStart, int insetTop, int insetEnd, int insetBottom, View view) { in createRelativeInsetDrawable() argument
40 drawable, insetStart, insetTop, insetEnd, insetBottom, isRtl); in createRelativeInsetDrawable()
49 Drawable drawable, in createRelativeInsetDrawable() argument
61 drawable, insetStart, insetTop, insetEnd, insetBottom, isRtl); in createRelativeInsetDrawable()
71 Drawable drawable, in createRelativeInsetDrawable() argument
78 drawable, in createRelativeInsetDrawable()
87 Drawable drawable, in createRelativeInsetDrawable() argument
94 return new InsetDrawable(drawable, insetEnd, insetTop, insetStart, insetBottom); in createRelativeInsetDrawable()
[all …]
/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 …]
DGame.java170 R.drawable.ui_bar), 0, 0), in bootstrap()
172 R.drawable.ui_bar_bg), 0, 0)); in bootstrap()
173 hud.setFadeTexture(longTermTextureLibrary.allocateTexture(R.drawable.black)); in bootstrap()
176 R.drawable.ui_button_fly_disabled), 0, 0), in bootstrap()
178 R.drawable.ui_button_fly_off), 0, 0), in bootstrap()
180 R.drawable.ui_button_fly_on), 0, 0), in bootstrap()
182 R.drawable.ui_button_stomp_off), 0, 0), in bootstrap()
184 R.drawable.ui_button_stomp_on), 0, 0), in bootstrap()
186 R.drawable.ui_movement_slider_base), 0, 0), in bootstrap()
188 R.drawable.ui_movement_slider_button_off), 0, 0), in bootstrap()
[all …]
/external/mesa3d/src/mesa/drivers/dri/r200/
Dradeon_common_context.c326 __DRIdrawable *drawable; in radeon_prepare_render() local
333 drawable = driContext->driDrawablePriv; in radeon_prepare_render()
334 if (drawable->dri2.stamp != driContext->dri2.draw_stamp) { in radeon_prepare_render()
335 if (drawable->lastStamp != drawable->dri2.stamp) in radeon_prepare_render()
336 radeon_update_renderbuffers(driContext, drawable, GL_FALSE); in radeon_prepare_render()
341 driContext->dri2.draw_stamp = drawable->dri2.stamp; in radeon_prepare_render()
344 drawable = driContext->driReadablePriv; in radeon_prepare_render()
345 if (drawable->dri2.stamp != driContext->dri2.read_stamp) { in radeon_prepare_render()
346 if (drawable->lastStamp != drawable->dri2.stamp) in radeon_prepare_render()
347 radeon_update_renderbuffers(driContext, drawable, GL_FALSE); in radeon_prepare_render()
[all …]
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_common_context.c326 __DRIdrawable *drawable; in radeon_prepare_render() local
333 drawable = driContext->driDrawablePriv; in radeon_prepare_render()
334 if (drawable->dri2.stamp != driContext->dri2.draw_stamp) { in radeon_prepare_render()
335 if (drawable->lastStamp != drawable->dri2.stamp) in radeon_prepare_render()
336 radeon_update_renderbuffers(driContext, drawable, GL_FALSE); in radeon_prepare_render()
341 driContext->dri2.draw_stamp = drawable->dri2.stamp; in radeon_prepare_render()
344 drawable = driContext->driReadablePriv; in radeon_prepare_render()
345 if (drawable->dri2.stamp != driContext->dri2.read_stamp) { in radeon_prepare_render()
346 if (drawable->lastStamp != drawable->dri2.stamp) in radeon_prepare_render()
347 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()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_context.c1256 __DRIdrawable *drawable) in intel_resolve_for_dri2_flush() argument
1267 struct gl_framebuffer *fb = drawable->driverPrivate; in intel_resolve_for_dri2_flush()
1315 __DRIdrawable *drawable,
1321 __DRIdrawable *drawable,
1327 intel_update_image_buffers(struct brw_context *brw, __DRIdrawable *drawable);
1330 intel_update_dri2_buffers(struct brw_context *brw, __DRIdrawable *drawable) in intel_update_dri2_buffers() argument
1332 struct gl_framebuffer *fb = drawable->driverPrivate; in intel_update_dri2_buffers()
1341 drawable->lastStamp = drawable->dri2.stamp; in intel_update_dri2_buffers()
1344 fprintf(stderr, "enter %s, drawable %p\n", __func__, drawable); in intel_update_dri2_buffers()
1346 intel_query_dri2_buffers(brw, drawable, &buffers, &count); in intel_update_dri2_buffers()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowDrawable.java10 import android.graphics.drawable.BitmapDrawable;
11 import android.graphics.drawable.Drawable;
12 import android.graphics.drawable.NinePatchDrawable;
48 BitmapDrawable drawable = new BitmapDrawable(ReflectionHelpers.callConstructor(Bitmap.class)); in createFromStream() local
49 ShadowBitmapDrawable shadowBitmapDrawable = Shadow.extract(drawable); in createFromStream()
53 return drawable; in createFromStream()
90 BitmapDrawable drawable = new BitmapDrawable(ReflectionHelpers.callConstructor(Bitmap.class)); in createFromPath() local
91 ShadowBitmapDrawable shadowBitmapDrawable = Shadow.extract(drawable); in createFromPath()
94 return drawable; in createFromPath()
101 BitmapDrawable drawable = new BitmapDrawable(bitmap); in createFromResourceId() local
[all …]
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
DBitmapDrawableResource.java3 import android.graphics.drawable.BitmapDrawable;
6 import com.bumptech.glide.load.resource.drawable.DrawableResource;
21 public BitmapDrawableResource(BitmapDrawable drawable, BitmapPool bitmapPool) { in BitmapDrawableResource() argument
22 super(drawable); in BitmapDrawableResource()
28 return Util.getBitmapByteSize(drawable.getBitmap()); in getSize()
33 bitmapPool.put(drawable.getBitmap()); in recycle()

12345678910>>...14