Searched defs:bitmap (Results 426 - 450 of 826) sorted by relevance

<<11121314151617181920>>

/external/chromium_org/third_party/skia/experimental/Intersection/
H A DEdgeWalkerPolygons_Test.cpp11 static SkBitmap bitmap; variable
24 testSimplify(path, true, out, bitmap); // expect |\/|
38 testSimplify(path, true, out, bitmap);
51 testSimplify(path, true, out, bitmap);
64 testSimplify(path, true, out, bitmap);
79 testSimplify(path, true, out, bitmap);
94 testSimplify(path, true, out, bitmap);
109 testSimplify(path, true, out, bitmap);
124 testSimplify(path, true, out, bitmap);
139 testSimplify(path, true, out, bitmap);
[all...]
H A DEdgeWalkerRectangles_Test.cpp11 static SkBitmap bitmap; variable
19 testSimplify(path, true, out, bitmap);
316 testSimplify(path, true, out, bitmap);
/external/chromium_org/third_party/skia/experimental/PdfViewer/
H A DSkTrackDevice.h29 SkTrackDevice(const SkBitmap& bitmap) : SkBitmapDevice(bitmap) argument
92 virtual void drawBitmap(const SkDraw& dummy1, const SkBitmap& bitmap, argument
95 INHERITED::drawBitmap(dummy1, bitmap, matrix, paint);
99 virtual void drawSprite(const SkDraw& dummy1, const SkBitmap& bitmap, argument
102 INHERITED::drawSprite(dummy1, bitmap, x, y, paint);
/external/chromium_org/third_party/skia/experimental/nanomsg/
H A Dpicture_demo.cpp194 SkBitmap bitmap; local
195 bitmap.allocN32Pixels(1000, 1000);
196 SkCanvas canvas(bitmap);
202 SkImageEncoder::EncodeFile(FLAGS_png[0], bitmap, SkImageEncoder::kPNG_Type, 100);
/external/chromium_org/third_party/skia/gm/
H A Dbitmapscroll.cpp12 /** Create a bitmap image suitable for testing SkBitmap::scrollRect().
14 * @param quarterWidth bitmap will be 4x this many pixels wide
15 * @param quarterHeight bitmap will be 4x this many pixels tall
16 * @param bitmap the bitmap data is written into this object
18 static void make_bitmap(int quarterWidth, int quarterHeight, SkBitmap *bitmap) { argument
28 // Prepare bitmap, and a canvas that draws into it.
29 bitmap->allocN32Pixels(quarterWidth*4, quarterHeight*4);
30 SkCanvas canvas(*bitmap);
51 // Create the original bitmap
[all...]
H A Dgm_expectations.cpp29 const static char kJsonKey_Hashtype_Bitmap_64bitMD5[] = "bitmap-64bitMD5";
52 GmResultDigest::GmResultDigest(const SkBitmap &bitmap) { argument
53 fIsValid = SkBitmapHasher::ComputeDigest(bitmap, &fHashDigest);
125 Expectations::Expectations(const SkBitmap& bitmap, bool ignoreFailure) { argument
126 fBitmap = bitmap;
128 fAllowedResultDigests.push_back(GmResultDigest(bitmap));
H A Dxfermodes3.cpp22 * This tests drawing device-covering rects with solid colors and bitmap shaders over a
173 SkBitmap bitmap; local
174 if (ropixels.asROBitmap(&bitmap)) {
175 canvas->drawBitmap(bitmap, 0, 0);
/external/chromium_org/third_party/skia/include/core/
H A DSkPixelRef.h45 SkBitmap. A pixelref is installed into a bitmap, and then the bitmap can
198 * Return a decoded instance of this pixelRef in bitmap. If this cannot be
199 * done, return false and the bitmap parameter is ignored/unchanged.
211 * If this returns true, then bitmap must be "locked" such that
212 * bitmap->getPixels() will return the correct address.
214 bool decodeInto(int pow2, SkBitmap* bitmap) { argument
216 return this->onDecodeInto(pow2, bitmap);
219 /** Are we really wrapping a texture instead of a bitmap?
312 virtual bool onDecodeInto(int pow2, SkBitmap* bitmap);
[all...]
/external/chromium_org/third_party/skia/platform_tools/nacl/src/
H A Dnacl_sample.cpp95 // Create a bitmap using the fPixelBuffer pixels
96 SkBitmap bitmap; local
97 bitmap.setConfig(SkBitmap::kARGB_8888_Config, w, h);
98 bitmap.setPixels(data);
99 // Create a canvas with the bitmap as the backend
100 SkCanvas canvas(bitmap);
/external/chromium_org/third_party/skia/samplecode/
H A DSampleBitmapRect.cpp30 static void make_bitmap(SkBitmap* bitmap) { argument
31 bitmap->allocN32Pixels(INT_SIZE, INT_SIZE);
32 SkCanvas canvas(*bitmap);
120 SkBitmap bitmap; local
121 make_bitmap(&bitmap);
125 canvas->drawBitmap(bitmap, 0, 0, &paint);
130 canvas->drawBitmapRectToRect(bitmap, &srcR, fDstR[i], &paint);
H A DSampleColorFilter.cpp102 SkBitmap bitmap; local
103 bitmap.allocN32Pixels(n, n);
104 bitmap.eraseColor(SK_ColorTRANSPARENT);
106 SkCanvas canvas(bitmap);
122 return bitmap;
/external/chromium_org/third_party/skia/src/core/
H A DSkDevice.cpp57 const SkBitmap& bitmap = this->onAccessBitmap(); local
59 bitmap.notifyPixelsChanged();
61 return bitmap;
H A DSkPixelRef.cpp194 bool SkPixelRef::onDecodeInto(int pow2, SkBitmap* bitmap) { argument
H A DSkReadBuffer.cpp192 bool SkReadBuffer::readBitmap(SkBitmap* bitmap) { argument
201 this->readUInt(); // bitmap generation ID (see SkWriteBuffer::writeBitmap)
203 *bitmap = *fBitmapStorage->getBitmap(index);
207 // The bitmap was stored in a heap, but there is no way to access it. Set an error and
208 // fall through to use a place holder bitmap.
226 if (fBitmapDecoder != NULL && fBitmapDecoder(data, length, bitmap)) {
227 if (bitmap->width() == width && bitmap->height() == height) {
231 " but offset is not zero. \nInfo about the bitmap:"
250 //SkASSERT(width <= bitmap
[all...]
H A DSkRecords.h184 explicit ImmutableBitmap(const SkBitmap& bitmap) { argument
185 if (bitmap.isImmutable()) {
186 fBitmap = bitmap;
188 bitmap.copyTo(&fBitmap);
223 ImmutableBitmap, bitmap,
226 RECORD3(DrawBitmapMatrix, Optional<SkPaint>, paint, ImmutableBitmap, bitmap, SkMatrix, matrix);
228 ImmutableBitmap, bitmap,
232 ImmutableBitmap, bitmap,
255 RECORD4(DrawSprite, Optional<SkPaint>, paint, ImmutableBitmap, bitmap, int, left, int, top);
/external/chromium_org/third_party/skia/src/effects/gradients/
H A DSkTwoPointRadialGradient.cpp183 SkBitmap* bitmap,
186 if (bitmap) {
187 this->getGradientTableBitmap(bitmap);
182 asABitmap( SkBitmap* bitmap, SkMatrix* matrix, SkShader::TileMode* xy) const argument
/external/chromium_org/third_party/skia/src/image/
H A DSkImage_Raster.cpp208 SkBitmap bitmap; local
209 if (!SkInstallDiscardablePixelRef(generator, &bitmap)) {
212 return SkNEW_ARGS(SkImage_Raster, (bitmap));
/external/chromium_org/third_party/skia/src/images/
H A DSkDecodingImageGenerator.cpp88 // a bitmap described by fInfo and fRowBytes
89 const size_t fRowBytes; // rowbytes for the destination bitmap
168 SkBitmap bitmap; local
171 bool success = decoder->decode(fStream, &bitmap, info.colorType(),
179 SkASSERT(bitmap.canCopyTo(info.colorType()));
180 bool copySuccess = bitmap.copyTo(&bm, info.colorType(), &allocator);
182 SkDEBUGFAIL("bitmap.copyTo(requestedConfig) failed.");
188 SkASSERT(check_alpha(info.alphaType(), bitmap.alphaType()));
192 if (kIndex_8_SkColorType != bitmap.colorType()) {
195 SkColorTable* ctable = bitmap
221 SkBitmap bitmap; local
[all...]
H A DSkImageDecoder.cpp134 bool SkImageDecoder::allocPixelRef(SkBitmap* bitmap, argument
136 return bitmap->tryAllocPixels(fAllocator, ctable);
165 // pass a temporary bitmap, so that if we return false, we are assured of
166 // leaving the caller's bitmap untouched.
215 SkDEBUGF(("failed to allocate pixels needed to crop the bitmap"));
223 SkDEBUGF(("SkImageDecoder::cropBitmap does not have a large enough bitmap.\n"));
/external/chromium_org/third_party/skia/src/utils/
H A DSkCanvasStateUtils.cpp226 // we currently only work for bitmap backed devices
227 const SkBitmap& bitmap = layer.device()->accessBitmap(true/*changePixels*/); local
228 if (bitmap.empty() || bitmap.isNull() || !bitmap.lockPixelsAreWritable()) {
237 layerState->width = bitmap.width();
238 layerState->height = bitmap.height();
240 switch (bitmap.colorType()) {
250 layerState->raster.rowBytes = bitmap.rowBytes();
251 layerState->raster.pixels = bitmap
297 SkBitmap bitmap; local
[all...]
H A DSkNinePatch.cpp104 const SkBitmap& bitmap,
108 if (bounds.isEmpty() || bitmap.width() == 0 || bitmap.height() == 0) {
113 SkAutoLockPixels alp(bitmap);
115 if (!bitmap.readyToDraw()) {
128 for (i = numYDivs - 1; i >= 0 && yDivs[i] == bitmap.height(); --i) {
139 canvas->drawBitmapRect(bitmap, NULL, bounds, paint);
160 const SkScalar fixed = SkIntToScalar(bitmap.width() - stretchSize);
172 const SkScalar fixed = SkIntToScalar(bitmap.height() - stretchSize);
181 bitmap
103 DrawMesh(SkCanvas* canvas, const SkRect& bounds, const SkBitmap& bitmap, const int32_t xDivs[], int numXDivs, const int32_t yDivs[], int numYDivs, const SkPaint* paint) argument
254 drawNineViaRects(SkCanvas* canvas, const SkRect& dst, const SkBitmap& bitmap, const SkIRect& margins, const SkPaint* paint) argument
301 DrawNine(SkCanvas* canvas, const SkRect& bounds, const SkBitmap& bitmap, const SkIRect& margins, const SkPaint* paint) argument
[all...]
/external/chromium_org/third_party/skia/src/utils/debugger/
H A DSkObjectParser.cpp21 SkString* SkObjectParser::BitmapToString(const SkBitmap& bitmap) { argument
24 mBitmap->appendS32(bitmap.width());
26 mBitmap->appendS32(bitmap.height());
34 mBitmap->append(gColorTypeStrings[bitmap.colorType()]);
36 if (bitmap.isOpaque()) {
42 if (bitmap.isImmutable()) {
48 if (bitmap.isVolatile()) {
55 mBitmap->appendS32(bitmap.getGenerationID());
/external/chromium_org/third_party/skia/src/utils/mac/
H A DSkCreateCGImageRef.cpp47 SkBitmap* bitmap = reinterpret_cast<SkBitmap*>(info); local
48 delete bitmap;
122 SkBitmap* bitmap = prepareForImageRef(bm, &bitsPerComponent, &info); local
123 if (NULL == bitmap) {
127 const int w = bitmap->width();
128 const int h = bitmap->height();
129 const size_t s = bitmap->getSize();
131 // our provider "owns" the bitmap*, and will take care of deleting it
132 // we initially lock it, so we can access the pixels. The bitmap will be deleted in the release
134 bitmap
223 SkBitmap bitmap; local
[all...]
/external/chromium_org/third_party/skia/src/views/unix/
H A DSkOSWindow_Unix.cpp385 static bool convertBitmapToXImage(XImage& image, const SkBitmap& bitmap) { argument
388 int bitsPerPixel = bitmap.bytesPerPixel() * 8;
389 image.width = bitmap.width();
390 image.height = bitmap.height();
392 image.data = (char*) bitmap.getPixels();
398 image.bytes_per_line = bitmap.rowBytes() - bitmap.width() * 4;
411 // Draw the bitmap to the screen.
412 const SkBitmap& bitmap = getBitmap(); local
413 int width = bitmap
[all...]
/external/chromium_org/third_party/skia/src/xml/
H A DSkJSDisplayable.cpp366 void SkJS::InitializeDisplayables(const SkBitmap& bitmap, JSContext *cx, JSObject *obj, JSObject *proto) { argument
367 SkJSDisplayable::gCanvas = new SkCanvas(bitmap);

Completed in 430 milliseconds

<<11121314151617181920>>