Home
last modified time | relevance | path

Searched refs:pixelRef (Results 1 – 25 of 73) sorted by relevance

123

/external/chromium_org/cc/resources/
Dpicture_pile_impl_unittest.cc311 EXPECT_TRUE(*iterator == lazy_bitmap[0][0].pixelRef()); in TEST()
318 EXPECT_TRUE(*iterator == lazy_bitmap[0][0].pixelRef()); in TEST()
325 EXPECT_TRUE(*iterator == lazy_bitmap[0][0].pixelRef()); in TEST()
333 EXPECT_TRUE(*iterator == lazy_bitmap[1][1].pixelRef()); in TEST()
340 EXPECT_TRUE(*iterator == lazy_bitmap[1][1].pixelRef()); in TEST()
347 EXPECT_TRUE(*iterator == lazy_bitmap[1][1].pixelRef()); in TEST()
361 EXPECT_TRUE(*iterator == lazy_bitmap[0][0].pixelRef()); in TEST()
363 EXPECT_TRUE(*iterator == lazy_bitmap[1][0].pixelRef()); in TEST()
365 EXPECT_TRUE(*iterator == lazy_bitmap[1][1].pixelRef()); in TEST()
372 EXPECT_TRUE(*iterator == lazy_bitmap[0][0].pixelRef()); in TEST()
[all …]
Dpicture_unittest.cc152 EXPECT_TRUE(*iterator == lazy_bitmap[y][x].pixelRef()) << x << " " << y; in TEST()
164 EXPECT_TRUE(*iterator == lazy_bitmap[1][2].pixelRef()); in TEST()
166 EXPECT_TRUE(*iterator == lazy_bitmap[2][1].pixelRef()); in TEST()
168 EXPECT_TRUE(*iterator == lazy_bitmap[2][3].pixelRef()); in TEST()
170 EXPECT_TRUE(*iterator == lazy_bitmap[3][2].pixelRef()); in TEST()
178 EXPECT_TRUE(*iterator == lazy_bitmap[1][2].pixelRef()); in TEST()
180 EXPECT_TRUE(*iterator == lazy_bitmap[2][1].pixelRef()); in TEST()
186 EXPECT_TRUE(*iterator == lazy_bitmap[2][3].pixelRef()); in TEST()
188 EXPECT_TRUE(*iterator == lazy_bitmap[3][2].pixelRef()); in TEST()
192 EXPECT_TRUE(*copy == lazy_bitmap[2][1].pixelRef()); in TEST()
[all …]
Dimage_layer_updater.cc60 DCHECK(bitmap.pixelRef()); in SetBitmap()
65 return bitmap.pixelRef() == bitmap_.pixelRef(); in UsingBitmap()
/external/skia/tests/
DPixelRefTest.cpp56 SkAutoTUnref<SkPixelRef> pixelRef(SkMallocPixelRef::NewAllocate(info, 0, NULL)); in DEF_TEST() local
60 pixelRef->addGenIDChangeListener(SkNEW_ARGS(TestListener, (&count))); in DEF_TEST()
65 pixelRef->notifyPixelsChanged(); in DEF_TEST()
69 REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID()); in DEF_TEST()
72 pixelRef->notifyPixelsChanged(); in DEF_TEST()
76 REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID()); in DEF_TEST()
77 pixelRef->addGenIDChangeListener(SkNEW_ARGS(TestListener, (&count))); in DEF_TEST()
78 pixelRef->notifyPixelsChanged(); in DEF_TEST()
82 REPORTER_ASSERT(r, 0 != pixelRef->getGenerationID()); in DEF_TEST()
83 pixelRef->addGenIDChangeListener(NULL); in DEF_TEST()
[all …]
DGpuBitmapCopyTest.cpp60 REPORTER_ASSERT(reporter, src.pixelRef() != NULL && dst.pixelRef() != NULL); in TestIndividualCopy()
66 bool readBack = src.pixelRef()->readPixels(&srcReadBack); in TestIndividualCopy()
70 bool readBack = dst.pixelRef()->readPixels(&dstReadBack); in TestIndividualCopy()
DImageCacheTest.cpp46 REPORTER_ASSERT(reporter, tmp.pixelRef() == tmp2.pixelRef()); in test_cache()
/external/chromium_org/third_party/WebKit/Source/platform/graphics/
DDiscardablePixelRef.cpp55 …SkAutoTUnref<DiscardablePixelRef> pixelRef(new DiscardablePixelRef(info, adoptPtr(new SkMutex()))); in allocPixelRef() local
56 if (pixelRef->allocAndLockDiscardableMemory(size.get32())) { in allocPixelRef()
57 pixelRef->setURI(labelDiscardable); in allocPixelRef()
58 dst->setPixelRef(pixelRef.get()); in allocPixelRef()
108 bool DiscardablePixelRef::isDiscardable(SkPixelRef* pixelRef) in isDiscardable() argument
113 return pixelRef && pixelRef->getURI() && discardable.equals(pixelRef->getURI()); in isDiscardable()
DDeferredImageDecoder.cpp75 return bitmap.pixelRef() in isLazyDecoded()
76 && bitmap.pixelRef()->getURI() in isLazyDecoded()
77 && (!memcmp(bitmap.pixelRef()->getURI(), labelLazyDecoded, sizeof(labelLazyDecoded)) in isLazyDecoded()
78 || !memcmp(bitmap.pixelRef()->getURI(), labelDiscardable, sizeof(labelDiscardable))); in isLazyDecoded()
271 bitmap.pixelRef()->setURI(labelDiscardable); in createSkiaDiscardableBitmap()
295 bitmap.pixelRef()->setURI(labelLazyDecoded); in createLazyDecodingBitmap()
DImageDecodingStoreTest.cpp411 …MockDiscardablePixelRef* pixelRef = static_cast<MockDiscardablePixelRef*>(refImage->bitmap().pixel… in TEST_F() local
412 pixelRef->discard(); in TEST_F()
425 …MockDiscardablePixelRef* pixelRef = static_cast<MockDiscardablePixelRef*>(cachedImage->bitmap().pi… in TEST_F() local
426 pixelRef->discard(); in TEST_F()
/external/chromium/chrome/browser/ui/views/tabs/
Dtab_renderer_data.cc22 favicon.pixelRef() && in Equals()
23 favicon.pixelRef() == data.favicon.pixelRef() && in Equals()
/external/chromium_org/cc/layers/
Dpicture_image_layer.cc36 if (bitmap.pixelRef() && bitmap.pixelRef() == bitmap_.pixelRef()) in SetBitmap()
Dimage_layer.cc29 if (bitmap.pixelRef() && bitmap.pixelRef() == bitmap_.pixelRef()) in SetBitmap()
/external/chromium_org/third_party/WebKit/Source/platform/graphics/skia/
DGaneshUtils.cpp61 SkGrPixelRef* pixelRef = SkNEW_ARGS(SkGrPixelRef, (info, texture.get())); in ensureTextureBackedSkBitmap() local
62 if (!pixelRef) in ensureTextureBackedSkBitmap()
65 bitmap.setPixelRef(pixelRef, 0)->unref(); in ensureTextureBackedSkBitmap()
/external/skia/src/gpu/
DSkGr.cpp109 static void add_genID_listener(GrResourceKey key, SkPixelRef* pixelRef) { in add_genID_listener() argument
110 SkASSERT(NULL != pixelRef); in add_genID_listener()
111 pixelRef->addGenIDChangeListener(SkNEW_ARGS(GrResourceInvalidator, (key))); in add_genID_listener()
145 add_genID_listener(key, origBitmap.pixelRef()); in sk_gr_create_bitmap_texture()
177 add_genID_listener(key, origBitmap.pixelRef()); in sk_gr_create_bitmap_texture()
/external/chromium_org/third_party/skia/src/gpu/
DSkGr.cpp109 static void add_genID_listener(GrResourceKey key, SkPixelRef* pixelRef) { in add_genID_listener() argument
110 SkASSERT(NULL != pixelRef); in add_genID_listener()
111 pixelRef->addGenIDChangeListener(SkNEW_ARGS(GrResourceInvalidator, (key))); in add_genID_listener()
145 add_genID_listener(key, origBitmap.pixelRef()); in sk_gr_create_bitmap_texture()
177 add_genID_listener(key, origBitmap.pixelRef()); in sk_gr_create_bitmap_texture()
/external/skia/dm/
DDMSerializeTask.cpp23 if (NULL == bitmap.pixelRef()) { in trivial_bitmap_encoder()
26 SkData* data = bitmap.pixelRef()->refEncodedData(); in trivial_bitmap_encoder()
/external/chromium_org/third_party/skia/src/core/
DSkBitmapProcShader.cpp87 if (NULL == bm.pixelRef()) { in valid_for_drawing()
191 SkASSERT(state.fBitmap->pixelRef() == NULL || in shadeSpan()
192 state.fBitmap->pixelRef()->isLocked()); in shadeSpan()
243 SkASSERT(state.fBitmap->pixelRef() == NULL || in shadeSpan16()
244 state.fBitmap->pixelRef()->isLocked()); in shadeSpan16()
DSkBitmap.cpp573 dst == NULL || (getPixels() == NULL && pixelRef() == NULL)) in copyPixelsTo()
968 SkPixelRef* pixelRef = fPixelRef->deepCopy(this->config(), &subset); in extractSubset() local
969 if (pixelRef != NULL) { in extractSubset()
974 dst.setPixelRef(pixelRef)->unref(); in extractSubset()
1057 if (dst->pixelRef() && this->config() == dstConfig) { in copyTo()
1059 dst->pixelRef()->cloneGenID(*fPixelRef); in copyTo()
1098 SkPixelRef* pixelRef = tmpDst.pixelRef(); in copyTo() local
1099 if (NULL != pixelRef && NULL != fPixelRef) { in copyTo()
1101 pixelRef->cloneGenID(*fPixelRef); in copyTo()
1151 SkPixelRef* pixelRef = fPixelRef->deepCopy(dstConfig); in deepCopyTo() local
[all …]
/external/skia/src/core/
DSkBitmapProcShader.cpp87 if (NULL == bm.pixelRef()) { in valid_for_drawing()
191 SkASSERT(state.fBitmap->pixelRef() == NULL || in shadeSpan()
192 state.fBitmap->pixelRef()->isLocked()); in shadeSpan()
243 SkASSERT(state.fBitmap->pixelRef() == NULL || in shadeSpan16()
244 state.fBitmap->pixelRef()->isLocked()); in shadeSpan16()
DSkBitmap.cpp573 dst == NULL || (getPixels() == NULL && pixelRef() == NULL)) in copyPixelsTo()
968 SkPixelRef* pixelRef = fPixelRef->deepCopy(this->config(), &subset); in extractSubset() local
969 if (pixelRef != NULL) { in extractSubset()
974 dst.setPixelRef(pixelRef)->unref(); in extractSubset()
1057 if (dst->pixelRef() && this->config() == dstConfig) { in copyTo()
1059 dst->pixelRef()->cloneGenID(*fPixelRef); in copyTo()
1098 SkPixelRef* pixelRef = tmpDst.pixelRef(); in copyTo() local
1099 if (NULL != pixelRef && NULL != fPixelRef) { in copyTo()
1101 pixelRef->cloneGenID(*fPixelRef); in copyTo()
1151 SkPixelRef* pixelRef = fPixelRef->deepCopy(dstConfig); in deepCopyTo() local
[all …]
/external/skia/src/image/
DSkImage_Codec.cpp43 if (!fBitmap.pixelRef()) { in onDraw()
54 if (!fBitmap.pixelRef()) { in onDrawRectToRect()
/external/chromium_org/third_party/skia/src/image/
DSkImage_Codec.cpp43 if (!fBitmap.pixelRef()) { in onDraw()
54 if (!fBitmap.pixelRef()) { in onDrawRectToRect()
/external/chromium_org/cc/debug/
Ddevtools_instrumentation.h46 explicit ScopedImageDecodeTask(void* pixelRef) { in ScopedImageDecodeTask() argument
48 internal::kPixelRefId, reinterpret_cast<uint64>(pixelRef)); in ScopedImageDecodeTask()
/external/chromium_org/third_party/WebKit/Source/core/frame/
DImageBitmapTest.cpp185 … ASSERT_EQ(imageBitmap->bitmapImage()->nativeImageForCurrentFrame()->bitmap().pixelRef()->pixels(), in TEST_F()
186 … originalImageResource->image()->nativeImageForCurrentFrame()->bitmap().pixelRef()->pixels()); in TEST_F()
189 … ASSERT_NE(imageBitmap->bitmapImage()->nativeImageForCurrentFrame()->bitmap().pixelRef()->pixels(), in TEST_F()
190 newImageResource->image()->nativeImageForCurrentFrame()->bitmap().pixelRef()->pixels()); in TEST_F()
/external/chromium_org/skia/ext/
Dplatform_canvas_unittest.cc419 EXPECT_TRUE(platform_bitmap->GetBitmap().pixelRef()->isLocked()); in TEST()
420 EXPECT_EQ(1, platform_bitmap->GetBitmap().pixelRef()->getRefCnt()); in TEST()
428 EXPECT_EQ(2, platform_bitmap->GetBitmap().pixelRef()->getRefCnt()); in TEST()
429 EXPECT_EQ(2, sk_bitmap.pixelRef()->getRefCnt()); in TEST()
440 EXPECT_EQ(1, sk_bitmap.pixelRef()->getRefCnt()); in TEST()

123