Searched defs:bitmap (Results 301 - 325 of 826) sorted by relevance

<<11121314151617181920>>

/external/chromium_org/third_party/skia/gm/
H A Dimagefiltersgraph.cpp130 void drawClippedBitmap(SkCanvas* canvas, const SkBitmap& bitmap, const SkPaint& paint) { argument
133 SkIntToScalar(bitmap.width()), SkIntToScalar(bitmap.height())));
134 canvas->drawBitmap(bitmap, 0, 0, &paint);
H A Dmixedxfermodes.cpp86 SkBitmap bitmap; variable
87 bitmap.allocN32Pixels(2, 2);
88 memcpy(bitmap.getPixels(), kCheckerPixelData, sizeof(kCheckerPixelData));
91 fBG.reset(SkShader::CreateBitmapShader(bitmap,
H A Doffsetimagefilter.cpp67 void drawClippedBitmap(SkCanvas* canvas, const SkBitmap& bitmap, const SkPaint& paint, SkScalar scale, const SkIRect& cropRect) { argument
70 SkIntToScalar(bitmap.width()), SkIntToScalar(bitmap.height()));
73 canvas->drawBitmap(bitmap, 0, 0, &paint);
99 SkBitmap* bitmap = (i & 0x01) ? &fCheckerboard : &fBitmap; local
102 bitmap->width() - i * 8,
103 bitmap->height() - i * 12);
105 SkAutoTUnref<SkImageFilter> tileInput(SkBitmapSource::Create(*bitmap));
111 drawClippedBitmap(canvas, *bitmap, paint, SK_Scalar1, cropRect);
112 canvas->translate(SkIntToScalar(bitmap
[all...]
H A Dxfermodeimagefilter.cpp69 static void drawClippedBitmap(SkCanvas* canvas, const SkBitmap& bitmap, const SkPaint& paint, argument
74 SkIntToScalar(bitmap.width()), SkIntToScalar(bitmap.height())));
75 canvas->drawBitmap(bitmap, 0, 0, &paint);
/external/chromium_org/third_party/skia/samplecode/
H A DSamplePath.cpp75 SkBitmap bitmap; local
76 bitmap.allocN32Pixels(300, 200);
78 SkCanvas canvas(bitmap);
/external/chromium_org/third_party/skia/src/gpu/
H A DSkGrPixelRef.cpp153 static bool tryAllocBitmapPixels(SkBitmap* bitmap) { argument
156 return allocator->allocPixelRef(bitmap, 0);
159 return bitmap->tryAllocPixels();
/external/chromium_org/third_party/skia/src/image/
H A DSkImage.cpp53 bool SkImage::readPixels(SkBitmap* bitmap, const SkIRect* subset) const { argument
54 if (NULL == bitmap) {
60 // trim against the bitmap, if its already been allocated
61 if (bitmap->pixelRef()) {
62 bounds.fRight = SkMin32(bounds.fRight, bitmap->width());
63 bounds.fBottom = SkMin32(bounds.fBottom, bitmap->height());
70 // perhaps we could return true + empty-bitmap?
73 return as_IB(this)->onReadPixels(bitmap, bounds);
110 bool SkImage_Base::onReadPixels(SkBitmap* bitmap, const SkIRect& subset) const { argument
111 if (bitmap
[all...]
/external/chromium_org/third_party/skia/src/images/
H A DSkImageDecoder_ktx.cpp79 // Determine the alpha of the bitmap...
107 // If the compressed format is a grayscale image, then setup the bitmap properly...
250 // This encoder takes a best guess at how to encode the bitmap passed to it. If
255 // data specified by the bitmap based on the config. (i.e. kAlpha8_Config will
268 bool SkKTXImageEncoder::onEncode(SkWStream* stream, const SkBitmap& bitmap, int) { argument
269 if (!bitmap.pixelRef()) {
272 SkAutoDataUnref data(bitmap.pixelRef()->refEncodedData());
290 return SkKTXFile::WriteBitmapToKTX(stream, bitmap);
/external/chromium_org/third_party/skia/src/utils/
H A DSkGatherPixelRefsAndRects.h112 virtual void drawBitmap(const SkDraw& draw, const SkBitmap& bitmap,
117 SkRect bitmapRect = SkRect::MakeWH(SkIntToScalar(bitmap.width()),
118 SkIntToScalar(bitmap.height()));
121 fPRCont->add(bitmap.pixelRef(), mappedRect);
128 virtual void drawSprite(const SkDraw&, const SkBitmap& bitmap,
134 SkRect bitmapRect = SkRect::MakeWH(SkIntToScalar(bitmap.width()),
135 SkIntToScalar(bitmap.height()));
138 fPRCont->add(bitmap.pixelRef(), mappedRect);
145 virtual void drawBitmapRect(const SkDraw& draw, const SkBitmap& bitmap,
149 SkRect bitmapRect = SkRect::MakeWH(SkIntToScalar(bitmap
158 SkBitmap bitmap; variable
200 SkBitmap bitmap; variable
247 SkBitmap bitmap; variable
296 GetBitmapFromPaint(const SkPaint &paint, SkBitmap* bitmap) argument
[all...]
H A DSkTextureCompressor.cpp176 SkData* CompressBitmapToFormat(const SkBitmap &bitmap, Format format) { argument
177 SkAutoLockPixels alp(bitmap);
179 int compressedDataSize = GetCompressedDataSize(format, bitmap.width(), bitmap.height());
184 const uint8_t* src = reinterpret_cast<const uint8_t*>(bitmap.getPixels());
187 if (!CompressBufferToFormat((uint8_t*)dst->writable_data(), src, bitmap.colorType(),
188 bitmap.width(), bitmap.height(), bitmap.rowBytes(), format)) {
/external/chromium_org/third_party/skia/src/views/sdl/
H A DSkOSWindow_SDL.cpp94 SkBitmap bitmap; local
96 if (skia_setBitmapFromSurface(&bitmap, fSurface)) {
97 SkCanvas canvas(bitmap);
/external/chromium_org/third_party/skia/tests/
H A DCanvasStateTest.cpp262 SkBitmap bitmap; local
263 bitmap.allocN32Pixels(10, 10);
264 SkCanvas canvas(bitmap);
286 SkBitmap bitmap; local
287 bitmap.allocN32Pixels(10, 10);
288 SkCanvas canvas(bitmap);
311 SkBitmap bitmap; local
312 bitmap.allocN32Pixels(WIDTH, HEIGHT);
313 SkCanvas canvas(bitmap);
H A DDeviceLooperTest.cpp43 SkBitmap bitmap; local
44 make_bm(&bitmap, gRec[i].fDevSize.width(), gRec[i].fDevSize.height());
49 SkDeviceLooper looper(bitmap, rc, gRec[i].fRect, SkToBool(aa));
54 REPORTER_ASSERT(reporter, looper.getBitmap().width() == bitmap.width());
55 REPORTER_ASSERT(reporter, looper.getBitmap().height() == bitmap.height());
65 SkDeviceLooper looper(bitmap, rc, r, false);
112 SkBitmap bitmap; local
113 make_bm(&bitmap, w, h);
128 SkDeviceLooper looper(bitmap, rc, rect, gRec[i].fAA);
H A DPathOpsThreadedCommon.h77 SkBitmap bitmap; variable
78 fState.fBitmap = &bitmap;
/external/chromium_org/third_party/skia/tools/
H A Dskdiff_utils.cpp61 static void force_all_opaque(const SkBitmap& bitmap) { argument
62 SkAutoLockPixels lock(bitmap);
63 for (int y = 0; y < bitmap.height(); y++) {
64 for (int x = 0; x < bitmap.width(); x++) {
65 *bitmap.getAddr32(x, y) |= (SK_A32_MASK << SK_A32_SHIFT);
70 bool write_bitmap(const SkString& path, const SkBitmap& bitmap) { argument
72 bitmap.copyTo(&copy, kN32_SkColorType);
/external/chromium_org/third_party/webrtc/modules/video_render/android/java/src/org/webrtc/videoengine/
H A DViESurfaceRenderer.java33 // the bitmap used for drawing.
34 private Bitmap bitmap = null; field in class:ViESurfaceRenderer
37 // Rect of the source bitmap to draw
103 bitmap = null;
109 if (bitmap == null) {
117 bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.RGB_565);
122 return bitmap;
127 if (bitmap == null) {
128 bitmap = CreateBitmap(width, height);
144 // It saves bitmap dat
[all...]
/external/chromium_org/tools/telemetry/telemetry/core/
H A Dtab_unittest.py9 from telemetry.core import bitmap namespace
112 self._tab.Highlight(bitmap.WEB_PAGE_TEST_ORANGE)
113 self._tab.ClearHighlight(bitmap.WEB_PAGE_TEST_ORANGE)
/external/chromium_org/ui/base/cursor/
H A Dcursors_aura.cc225 SkBitmap* bitmap,
227 DCHECK(bitmap && point);
238 GetImageSkiaNamed(resource_id)->bitmap();
241 *bitmap = *cursor_bitmap;
224 GetCursorBitmap(const Cursor& cursor, SkBitmap* bitmap, gfx::Point* point) argument
/external/chromium_org/ui/base/webui/
H A Dweb_ui_util.cc31 std::string GetBitmapDataUrl(const SkBitmap& bitmap) { argument
33 "width", bitmap.width(), "height", bitmap.height());
35 gfx::PNGCodec::EncodeBGRASkBitmap(bitmap, false, &output);
/external/chromium_org/ui/gfx/android/
H A Djava_bitmap.cc7 #include <android/bitmap.h>
20 JavaBitmap::JavaBitmap(jobject bitmap) argument
21 : bitmap_(bitmap),
101 SkBitmap bitmap = CreateSkBitmapFromJavaBitmap(gfx::JavaBitmap(jobj.obj()));
102 if (bitmap.isNull())
103 return bitmap;
106 bitmap, skia::ImageOperations::RESIZE_BOX, size.width(), size.height());
/external/chromium_org/ui/gfx/
H A Dcolor_analysis_unittest.cc96 SkBitmap bitmap; local
97 bitmap.allocN32Pixels(colors.size(), 1);
99 SkAutoLockPixels lock(bitmap);
101 bitmap.eraseArea(SkIRect::MakeXYWH(i, 0, 1, 1), colors[i]);
103 return gfx::Image::CreateFrom1xBitmap(bitmap).As1xPNGBytes();
145 // Compute minimal and maximal graylevel (or alphalevel) of the input |bitmap|.
146 // |bitmap| has to be allocated and configured to kA8_Config.
147 void Calculate8bitBitmapMinMax(const SkBitmap& bitmap, argument
150 SkAutoLockPixels bitmap_lock(bitmap);
151 DCHECK(bitmap
280 SkBitmap bitmap; local
302 SkBitmap bitmap; local
325 SkBitmap bitmap; local
346 SkBitmap bitmap = local
[all...]
/external/chromium_org/ui/gfx/image/
H A Dimage_unittest.cc375 const SkBitmap* bitmap = image.ToSkBitmap(); local
376 EXPECT_FALSE(bitmap->isNull());
395 const SkBitmap* bitmap = image.ToSkBitmap(); local
396 EXPECT_TRUE(bitmap);
397 EXPECT_FALSE(bitmap->isNull());
436 const SkBitmap* bitmap = NULL; local
439 bitmap = image.CopySkBitmap();
442 EXPECT_TRUE(bitmap);
443 EXPECT_FALSE(bitmap->isNull());
444 delete bitmap;
476 const SkBitmap* bitmap = image.ToSkBitmap(); local
484 SkBitmap bitmap; local
526 SkBitmap bitmap; local
[all...]
/external/chromium_org/ui/gfx/ipc/
H A Dgfx_param_traits.cc16 // The color type for the bitmap (bits per pixel, etc).
19 // The alpha type for the bitmap (opaque, premul, unpremul).
22 // The width of the bitmap in pixels.
25 // The height of the bitmap in pixels.
28 void InitSkBitmapDataForTransfer(const SkBitmap& bitmap) { argument
29 const SkImageInfo& info = bitmap.info();
36 // Returns whether |bitmap| successfully initialized.
37 bool InitSkBitmapFromData(SkBitmap* bitmap, argument
40 if (!bitmap->tryAllocPixels(
43 if (pixels_size != bitmap
[all...]
/external/chromium_org/ui/message_center/views/
H A Dnotification_view_unittest.cc56 SkBitmap bitmap; local
57 bitmap.allocN32Pixels(width, height);
58 bitmap.eraseRGB(0, 255, 0);
59 return bitmap;
113 SkBitmap bitmap; local
/external/freetype/include/
H A Dftglyph.h63 /* bitmap, a vector outline, or even images in other formats. */
80 /* bitmap or pointer. */
124 /* A handle to an object used to model a bitmap glyph image. This is */
136 /* A structure used for bitmap glyph images. This really is a */
144 /* glyph bitmap. */
148 /* bitmap. This distance is positive for upwards~y! */
150 /* bitmap :: A descriptor for the bitmap. */
155 /* the bitmap's contents easily. */
165 FT_Bitmap bitmap; member in struct:FT_BitmapGlyphRec_
[all...]

Completed in 497 milliseconds

<<11121314151617181920>>