/external/skia/samplecode/ |
SampleClamp.cpp | 11 SkColor colors[] = { SK_ColorRED, SK_ColorBLUE }; local 12 return SkGradientShader::CreateLinear(pts, colors, NULL, 2,
|
SampleAvoid.cpp | 18 SkColor colors[] = { SK_ColorRED, SK_ColorYELLOW, SK_ColorGREEN, SK_ColorCYAN, SK_ColorBLUE }; local 22 fShader = SkGradientShader::CreateLinear(pts, colors, NULL, 23 SK_ARRAY_COUNT(colors), 28 colors, NULL, 29 SK_ARRAY_COUNT(colors),
|
SampleBitmapRect.cpp | 29 const SkColor colors[] = { SK_ColorWHITE, SK_ColorBLUE }; local 30 paint.setShader(SkGradientShader::CreateLinear(pts, colors, NULL, 2,
|
/external/skia/src/images/ |
SkImageDecoder_libico.cpp | 53 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 56 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 59 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 62 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 65 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors); 168 SkBitmap* bm, int alphaByte, int m, int shift, SkPMColor* colors) = NULL; 207 SkPMColor* colors = NULL; local 211 colors = new SkPMColor[colorCount]; 218 colors[j] = SkPackARGB32(0xFF, red & 0xFF, green & 0xFF, blue & 0xFF); 243 delete[] colors; [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/ |
SDL_pixels_c.h | 44 extern void SDL_DitherColors(SDL_Color *colors, int bpp); 46 extern void SDL_ApplyGamma(Uint16 *gamma, SDL_Color *colors, SDL_Color *output, int ncolors);
|
SDL_bmp.c | 204 /* Create a compatible surface, note that the colors are RGB ordered */ 220 SDL_RWread(src, &palette->colors[i].b, 1, 1); 221 SDL_RWread(src, &palette->colors[i].g, 1, 1); 222 SDL_RWread(src, &palette->colors[i].r, 1, 1); 223 palette->colors[i].unused = 0; 227 SDL_RWread(src, &palette->colors[i].b, 1, 1); 228 SDL_RWread(src, &palette->colors[i].g, 1, 1); 229 SDL_RWread(src, &palette->colors[i].r, 1, 1); 230 SDL_RWread(src, &palette->colors[i].unused, 1, 1); 459 SDL_Color *colors; local [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
PurgeableBitmapView.java | 58 int[] colors = createColors(); local 59 Bitmap src = Bitmap.createBitmap(colors, 0, STRIDE, WIDTH, HEIGHT, 68 int[] colors = new int[STRIDE * HEIGHT]; local 75 colors[y * STRIDE + x] = (a << 24) | (r << 16) | (g << 8) | b; 78 return colors;
|
Cube.java | 44 int colors[] = { local 78 ByteBuffer cbb = ByteBuffer.allocateDirect(colors.length*4); 81 mColorBuffer.put(colors);
|
ColorPickerDialog.java | 116 private int interpColor(int colors[], float unit) { 118 return colors[0]; 121 return colors[colors.length - 1]; 124 float p = unit * (colors.length - 1); 129 int c0 = colors[i]; 130 int c1 = colors[i+1];
|
/external/webkit/Source/WebCore/platform/graphics/android/ |
GradientAndroid.cpp | 80 SkColor* colors = (SkColor*)storage.get(); local 81 SkScalar* pos = (SkScalar*)(colors + count); 86 colors[i] = SkColorSetARGB(F2B(iter->alpha), F2B(iter->red), 97 colors, pos, count, mode); 99 s = SkGradientShader::CreateLinear(pts, colors, pos, count, mode);
|
/external/webkit/Source/WebCore/platform/graphics/win/ |
WebLayer.cpp | 106 const CGFloat* colors = CGColorGetComponents(borderColor); local 107 CGContextSetRGBFillColor(context, colors[0], colors[1], colors[2], colors[3]);
|
/external/qemu/distrib/sdl-1.2.12/src/video/wincommon/ |
SDL_syswm.c | 124 SDL_memcpy(pal_256->colors, icon->format->palette->colors, 128 pal_256->colors[black] = pal_256->colors[0]; 129 pal_256->colors[0].r = 0x00; 130 pal_256->colors[0].g = 0x00; 131 pal_256->colors[0].b = 0x00; 133 SDL_DitherColors(pal_256->colors, 139 icon_win32->biColors[i].rgbRed = pal_256->colors[i].r; 140 icon_win32->biColors[i].rgbGreen = pal_256->colors[i].g [all...] |
/external/chromium/chrome/browser/ui/gtk/infobars/ |
infobar_arrow_model.cc | 30 InfoBarColors colors = { local 37 return colors; 45 scoped_ptr<std::pair<SkColor, SkColor> > colors; local 94 InfoBarColors colors = CurrentInfoBarColors(); local 96 grad_colors[0] = colors.top; 97 grad_colors[1] = colors.bottom; 109 SkColorGetA(colors.top)));
|
/frameworks/base/core/java/android/content/res/ |
ColorStateList.java | 37 * Lets you map {@link android.view.View} state sets to colors. 76 * states to colors. 78 public ColorStateList(int[][] states, int[] colors) { 80 mColors = colors; 83 mDefaultColor = colors[0]; 87 mDefaultColor = colors[i]; 156 * colors as this one but where each color has the specified alpha value 160 int[] colors = new int[mColors.length]; local 162 int len = colors.length; 164 colors[i] = (mColors[i] & 0xFFFFFF) | (alpha << 24) [all...] |
/development/samples/BrowserPlugin/src/com/android/sampleplugin/graphics/ |
Cube.java | 44 int colors[] = { local 78 ByteBuffer cbb = ByteBuffer.allocateDirect(colors.length*4); 81 mColorBuffer.put(colors);
|
/external/skia/src/core/ |
SkBitmapProcState.h | 41 SkPMColor colors[]); 46 uint16_t colors[]); 143 int count, SkPMColor colors[]); 145 int count, SkPMColor colors[]);
|
SkBitmapProcState_shaderproc.h | 21 DSTTYPE* SK_RESTRICT colors, int count) { 25 SkASSERT(count > 0 && colors != NULL); 70 colors); 71 colors += 1;
|
/development/samples/GlobalTime/src/com/android/globaltime/ |
Shape.java | 30 * containing vertices, texture coordinates, colors, normals, and indices. 153 * @param colors an array of fixed-point color channel values 157 int[] colors, short[] indices) { 158 allocate(vertices, texcoords, normals, colors); 177 * @param colors an array of fixed-point color channel values 181 int[] colors, int[] indices) { 182 allocate(vertices, texcoords, normals, colors); 197 int[] colors) { 223 if ((colors != null) && mEmitColors) { 225 ByteBuffer.allocateDirect(colors.length * INT_BYTES) [all...] |
/external/webkit/Source/WebKit/chromium/src/ |
WebColor.cpp | 112 void setNamedColors(const WebColorName* colorNames, const WebColor* colors, size_t length) 116 WebColor color = colors[i]; 126 // TODO(jeremy): Tell RenderTheme to update colors.
|
/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/X11/extensions/ |
XKBgeom.h | 128 #define XkbShapeDoodadColor(g,d) (&(g)->colors[(d)->color_ndx]) 130 #define XkbSetShapeDoodadColor(g,d,c) ((d)->color_ndx= (c)-&(g)->colors[0]) 146 #define XkbTextDoodadColor(g,d) (&(g)->colors[(d)->color_ndx]) 147 #define XkbSetTextDoodadColor(g,d,c) ((d)->color_ndx= (c)-&(g)->colors[0]) 161 #define XkbIndicatorDoodadOnColor(g,d) (&(g)->colors[(d)->on_color_ndx]) 162 #define XkbIndicatorDoodadOffColor(g,d) (&(g)->colors[(d)->off_color_ndx]) 164 ((d)->on_color_ndx= (c)-&(g)->colors[0]) 166 ((d)->off_color_ndx= (c)-&(g)->colors[0]) 181 #define XkbLogoDoodadColor(g,d) (&(g)->colors[(d)->color_ndx]) 183 #define XkbSetLogoDoodadColor(g,d,c) ((d)->color_ndx= (c)-&(g)->colors[0] 292 XkbColorPtr colors; member in struct:_XkbGeometry [all...] |
/frameworks/base/libs/hwui/ |
GradientCache.cpp | 100 Texture* GradientCache::get(uint32_t* colors, float* positions, 103 GradientCacheEntry gradient(colors, positions, count, tileMode); 107 texture = addLinearGradient(gradient, colors, positions, count, tileMode); 118 uint32_t* colors, float* positions, int count, SkShader::TileMode tileMode) { 131 reinterpret_cast<const SkColor*>(colors), positions, count, tileMode);
|
/frameworks/base/opengl/libagl/ |
dxt.cpp | 152 uint32_t colors = *d32++; local 155 colors = swap(colors); 158 uint16_t color0 = colors & 0xffff; 159 uint16_t color1 = colors >> 16; 207 // Specified colors from the previous block 215 uint32_t colors = *d32++; local 219 colors = swap(colors); 223 // Raw colors 338 uint32_t colors = *d32++; local 462 uint32_t colors = *d32++; local [all...] |
/device/google/accessory/demokit/app/src/com/google/android/DemoKit/ |
ColorWheel.java | 133 private int interpColor(int colors[], float unit) { 135 return colors[0]; 138 return colors[colors.length - 1]; 141 float p = unit * (colors.length - 1); 146 int c0 = colors[i]; 147 int c1 = colors[i+1];
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
LinearGradient_Delegate.java | 59 int colors[], float positions[], int tileMode) { 61 colors, positions, Shader_Delegate.getTileMode(tileMode)); 77 int colors[], float positions[], int tileMode) { 99 * @param colors The colors to be distributed along the gradient line 101 * corresponding color in the colors array. If this is null, the 102 * the colors are distributed evenly along the gradient line. 106 int colors[], float positions[], TileMode tile) { 107 super(colors, positions); 125 public LinearGradientPaint(float x0, float y0, float x1, float y1, int colors[], [all...] |
RadialGradient_Delegate.java | 58 int colors[], float positions[], int tileMode) { 60 colors, positions, Shader_Delegate.getTileMode(tileMode)); 73 int colors[], float positions[], int tileMode) { 94 * @param colors The colors to be distributed between the center and edge of 97 * color in the colors array. If this is NULL, the the colors are 101 private RadialGradient_Delegate(float x, float y, float radius, int colors[], float positions[], 103 super(colors, positions); 114 int[] colors, float[] positions, TileMode mode) [all...] |