/frameworks/base/graphics/java/android/graphics/ |
LayerRasterizer.java | 26 the specified paint, but will not retain a reference to the paint 29 public void addLayer(Paint paint, float dx, float dy) { 30 nativeAddLayer(native_instance, paint.mNativePaint, dx, dy); 33 public void addLayer(Paint paint) { 34 nativeAddLayer(native_instance, paint.mNativePaint, 0, 0);
|
/external/webkit/Source/WebKit/android/plugins/ |
ANPPaintInterface.cpp | 35 static void anp_deletePaint(ANPPaint* paint) { 36 delete paint; 39 static ANPPaintFlags anp_getFlags(const ANPPaint* paint) { 40 return paint->getFlags(); 43 static void anp_setFlags(ANPPaint* paint, ANPPaintFlags flags) { 44 paint->setFlags(flags); 47 static ANPColor anp_getColor(const ANPPaint* paint) { 48 return paint->getColor(); 51 static void anp_setColor(ANPPaint* paint, ANPColor color) { 52 paint->setColor(color) [all...] |
/frameworks/base/core/java/android/view/ |
GLES20RecordingCanvas.java | 22 import android.graphics.Paint; 34 * This is intended for use with a DisplayList. This class keeps a list of all the Paint and 85 private void recordShaderBitmap(Paint paint) { 86 if (paint != null) { 87 final Shader shader = paint.getShader(); 95 public void drawPatch(Bitmap bitmap, byte[] chunks, RectF dst, Paint paint) { 96 super.drawPatch(bitmap, chunks, dst, paint); 98 // Shaders in the Paint are ignored when drawing a Bitma [all...] |
/external/skia/samplecode/ |
SampleEmboss.cpp | 44 SkPaint paint; local 46 paint.setAntiAlias(true); 47 paint.setStyle(SkPaint::kStroke_Style); 48 paint.setStrokeWidth(SkIntToScalar(10)); 49 paint.setMaskFilter(new SkEmbossMaskFilter(fLight, SkIntToScalar(4)))->unref(); 50 paint.setShader(new SkColorShader(SK_ColorBLUE))->unref(); 51 paint.setDither(true); 54 SkIntToScalar(30), paint);
|
SamplePathEffects.cpp | 72 SkPaint paint; local 73 paint.setAntiAlias(true); 76 paint.setStyle(SkPaint::kStroke_Style); 77 paint.setStrokeWidth(SK_Scalar1*4); 78 this->addLayer(paint); 80 paint.setStrokeWidth(SK_Scalar1*1); 81 paint.setXfermode(SkXfermode::kClear_Mode); 82 this->addLayer(paint); 84 paint.setAlpha(0x66); 85 this->addLayer(paint, SkIntToScalar(4), SkIntToScalar(4)) 142 SkPaint paint; local [all...] |
SampleLines.cpp | 51 SkPaint paint; local 52 // paint.setAntiAlias(true); 53 paint.setStyle(SkPaint::kStroke_Style); 54 paint.setStrokeWidth(SkScalarHalf(SkIntToScalar(3))); 55 paint.setColor(0xFFFF8800); 56 // paint.setColor(0xFFFFFFFF); 57 canvas->drawRect(r, paint); 68 SkPaint paint; 71 paint.setColor(SK_ColorWHITE); 72 paint.setAlpha(fAlpha & 0xFF) [all...] |
SampleBitmapRect.cpp | 26 SkPaint paint; local 27 paint.setAntiAlias(true); 30 paint.setShader(SkGradientShader::CreateLinear(pts, colors, NULL, 2, 32 canvas.drawCircle(32, 32, 32, paint); 63 SkPaint paint; local 64 paint.setStyle(SkPaint::kStroke_Style); 65 paint.setColor(SK_ColorGREEN); 74 canvas->drawBitmap(fBitmap, 0, 0, &paint); 75 canvas->drawBitmapRect(fBitmap, &src[i], dstR, &paint); 77 canvas->drawRect(dstR, paint); [all...] |
SampleBox.cpp | 22 SkPaint paint; local 23 paint.setAntiAlias(true); 24 paint.setStyle(SkPaint::kStroke_Style); 25 paint.setStrokeWidth(SkScalarHalf(SkIntToScalar(3))); 26 paint.setStyle(SkPaint::kFill_Style); 36 paint.setColor(0xFF000000 + i * 0x00010000); 37 canvas->drawRect(r, paint);
|
SampleTextOnPath.cpp | 39 static void test_measure(const SkPaint& paint) { 50 paint.getTextWidths(text, count, widths, NULL); 52 paint.getTextWidths(text, count, widths, rects); 56 SkDEBUGCODE(SkScalar w0 = paint.measureText(text, count, NULL);) 57 SkDEBUGCODE(SkScalar w1 = paint.measureText(text, count, &bounds);) 72 paint.getFlags(), i, 86 SkPaint paint; local 89 paint.setFlags(i); 90 test_measure(paint); 108 SkPaint paint; local 137 SkPaint paint; local 154 SkPaint paint; local 167 SkPaint paint; local 230 SkPaint paint; local [all...] |
SampleUnitMapper.cpp | 13 const SkPaint& paint) { 16 view->setPaint(paint); 56 SkPaint paint; local 57 paint.setAntiAlias(true); 58 paint.setTextSize(SkIntToScalar(25)); 60 fViews[i] = make_textview(this, r, paint); 77 SkPaint paint; local 78 paint.setAntiAlias(true); 79 paint.setColor(0xFF8888FF); 84 canvas->drawRect(r, paint); [all...] |
SampleDrawLooper.cpp | 40 SkPaint* paint = fLooper->addLayer(info); local 41 paint->setAntiAlias(true); 42 paint->setColor(gParams[i].fColor); 43 paint->setStyle(gParams[i].fStyle); 44 paint->setStrokeWidth(gParams[i].fWidth); 48 paint->setMaskFilter(mf)->unref(); 70 SkPaint paint; local 71 paint.setTextSize(SkIntToScalar(72)); 72 paint.setLooper(fLooper); 75 SkIntToScalar(30), paint); [all...] |
/external/skia/tests/ |
PaintTest.cpp | 9 SkPaint paint; local 23 paint.setStyle(SkPaint::kStroke_Style); 24 paint.setStrokeWidth(SkIntToScalar(2)); 25 paint.getFillPath(path, &stroke); 29 SkScalar miter = SkMaxScalar(SK_Scalar1, paint.getStrokeMiter()); 30 SkScalar inset = paint.getStrokeJoin() == SkPaint::kMiter_Join ? 31 SkScalarMul(paint.getStrokeWidth(), miter) : 32 paint.getStrokeWidth(); 40 // TODO add general paint tests 47 DEFINE_TESTCLASS("Paint", TestPaintClass, TestPaint [all...] |
/external/proguard/src/proguard/gui/splash/ |
Sprite.java | 26 * This interface describes objects that can paint themselves, possibly varying 36 * @param graphics the Graphics to paint on. 40 public void paint(Graphics graphics, long time); method in interface:Sprite
|
/external/skia/gpu/src/ |
gr_hello_world.cpp | 24 SkPaint paint; local 25 paint.setAntiAlias(true); 26 paint.setTextSize(30); 27 canvas.drawText("Hello Kno", 9, 40, 40, paint);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
StringTexture.java | 22 import android.graphics.Paint.FontMetricsInt; 36 private StringTexture(String text, TextPaint paint, 40 mPaint = paint; 45 TextPaint paint = new TextPaint(); local 46 paint.setTextSize(textSize); 47 paint.setAntiAlias(true); 48 paint.setColor(color); 49 paint.setShadowLayer(2f, 0f, 0f, Color.BLACK); 50 return paint; 61 TextPaint paint = getDefaultPaint(textSize, color) local [all...] |
/external/skia/include/core/ |
SkDrawLooper.h | 27 and something is drawn to a canvas with that paint, the looper subclass will 28 be called, allowing it to modify the canvas and/or paint for that draw call. 43 * is drawn (possibly with a modified canvas and/or paint). When false is 46 * On each call, the paint will be in its original state, but the canvas 53 virtual bool next(SkCanvas*, SkPaint* paint) = 0; 56 * The fast bounds functions are used to enable the paint to be culled early 60 * is expected to have the following behavior. Given the parent paint and 65 virtual bool canComputeFastBounds(const SkPaint& paint); 66 virtual void computeFastBounds(const SkPaint& paint,
|
/external/skia/src/effects/ |
SkPaintFlagsDrawFilter.cpp | 26 void SkPaintFlagsDrawFilter::filter(SkPaint* paint, Type) { 27 paint->setFlags((paint->getFlags() & ~fClearFlags) | fSetFlags);
|
/external/quake/src/com/android/quake/ |
QuakeViewNoData.java | 21 import android.graphics.Paint; 36 Paint paint = new Paint(); local 37 paint.setColor(0xffffffff); 38 paint.setStyle(Paint.Style.FILL); 39 canvas.drawRect(0, 0, getWidth(), getHeight(), paint); 40 paint.setColor(0xff000000); 45 10.0f, 20.0f, paint); [all...] |
/external/skia/gm/ |
blurs.cpp | 38 SkPaint paint; local 39 paint.setAntiAlias(true); 40 paint.setTextSize(SkIntToScalar(25)); 46 paint.setColor(SK_ColorBLUE); 52 paint.setMaskFilter(mf)->unref(); 54 paint.setMaskFilter(NULL); 59 , paint); 68 paint.setMaskFilter(mf)->unref(); 71 paint.setColor(SK_ColorBLACK); 72 canvas->drawText("Hamburgefons Style", 18, x, y, paint); [all...] |
filltypes.cpp | 24 SkScalar scale, const SkPaint& paint) { 36 canvas->drawPath(fPath, paint); 40 void showFour(SkCanvas* canvas, SkScalar scale, const SkPaint& paint) { 42 scale, paint); 44 scale, paint); 46 scale, paint); 48 scale, paint); 56 SkPaint paint; local 59 paint.setAntiAlias(false); 61 showFour(canvas, SK_Scalar1, paint); [all...] |
poly2poly.cpp | 22 static void doDraw(SkCanvas* canvas, SkPaint* paint, const int isrc[], 36 paint->setColor(SK_ColorGRAY); 37 paint->setStyle(SkPaint::kStroke_Style); 39 canvas->drawRectCoords(0, 0, D, D, *paint); 40 canvas->drawLine(0, 0, D, D, *paint); 41 canvas->drawLine(0, D, D, 0, *paint); 44 paint->getFontMetrics(&fm); 45 paint->setColor(SK_ColorRED); 46 paint->setStyle(SkPaint::kFill_Style); 51 canvas->drawText(str.c_str(), str.size(), x, y, *paint); 59 SkPaint paint; local [all...] |
/external/skia/src/core/ |
SkDevice.cpp | 138 SkPaint paint; local 139 paint.setXfermodeMode(SkXfermode::kSrc_Mode); 142 canvas.drawSprite(bitmap, x, y, &paint); 147 void SkDevice::drawPaint(const SkDraw& draw, const SkPaint& paint) { 148 draw.drawPaint(paint); 152 const SkPoint pts[], const SkPaint& paint) { 153 draw.drawPoints(mode, count, pts, paint); 157 const SkPaint& paint) { 158 draw.drawRect(r, paint); 162 const SkPaint& paint, const SkMatrix* prePathMatrix [all...] |
/external/chromium/chrome/browser/ui/views/infobars/ |
infobar_background.cc | 42 void InfoBarBackground::Paint(gfx::Canvas* canvas, views::View* view) const { 53 SkPaint paint; local 54 paint.setStrokeWidth(SkIntToScalar(InfoBar::kSeparatorLineHeight)); 55 paint.setStyle(SkPaint::kFill_Style); 56 paint.setStrokeCap(SkPaint::kRound_Cap); 57 paint.setShader(gradient_shader); 62 canvas_skia->drawPath(*infobar->fill_path(), paint); 64 paint.setShader(NULL); 65 paint.setColor(SkColorSetA(separator_color_, 67 paint.setStyle(SkPaint::kStroke_Style) [all...] |
/external/skia/src/ports/ |
SkFontHost_gamma_none.cpp | 30 int SkFontHost::ComputeGammaFlag(const SkPaint& paint)
|
/external/webkit/Source/WebCore/platform/gtk/ |
GtkPluginWidget.h | 38 void paint(GraphicsContext*, const IntRect&);
|