Home
last modified time | relevance | path

Searched refs:cachedImage (Results 1 – 25 of 48) sorted by relevance

12

/external/chromium_org/third_party/WebKit/Source/core/fetch/
DImageResourceTest.cpp54 ResourcePtr<ImageResource> cachedImage = new ImageResource(ResourceRequest()); in TEST() local
55 cachedImage->setLoading(true); in TEST()
58 cachedImage->addClient(&client); in TEST()
61cachedImage->responseReceived(ResourceResponse(KURL(), "multipart/x-mixed-replace", 0, String(), S… in TEST()
62 ASSERT_FALSE(cachedImage->resourceBuffer()); in TEST()
63 ASSERT_FALSE(cachedImage->hasImage()); in TEST()
70cachedImage->responseReceived(ResourceResponse(KURL(), "image/svg+xml", svgDataLength, String(), S… in TEST()
71 ASSERT_FALSE(cachedImage->resourceBuffer()); in TEST()
72 ASSERT_FALSE(cachedImage->hasImage()); in TEST()
77 cachedImage->appendData(svgData, svgDataLength); in TEST()
[all …]
/external/chromium_org/third_party/WebKit/Source/platform/graphics/
DImageFrameGenerator.cpp90 const ScaledImageFragment* cachedImage = 0; in decodeAndScale() local
92 cachedImage = tryToLockCompleteCache(scaledSize, index); in decodeAndScale()
93 if (cachedImage) in decodeAndScale()
94 return cachedImage; in decodeAndScale()
98 cachedImage = tryToScale(0, scaledSize, index); in decodeAndScale()
99 if (cachedImage) in decodeAndScale()
100 return cachedImage; in decodeAndScale()
102 cachedImage = tryToResumeDecodeAndScale(scaledSize, index); in decodeAndScale()
103 if (cachedImage) in decodeAndScale()
104 return cachedImage; in decodeAndScale()
[all …]
DImageDecodingStoreTest.cpp108 const ScaledImageFragment* cachedImage = 0; in lockCache() local
109 if (ImageDecodingStore::instance()->lockCache(m_generator.get(), size, index, &cachedImage)) in lockCache()
110 return cachedImage; in lockCache()
114 void unlockCache(const ScaledImageFragment* cachedImage) in unlockCache() argument
116 ImageDecodingStore::instance()->unlockCache(m_generator.get(), cachedImage); in unlockCache()
130 const ScaledImageFragment* cachedImage = lockCache(size); in isCacheAlive() local
131 if (!cachedImage) in isCacheAlive()
133 ImageDecodingStore::instance()->unlockCache(m_generator.get(), cachedImage); in isCacheAlive()
225 const ScaledImageFragment* cachedImage = lockCache(SkISize::Make(1, 1)); in TEST_F() local
226 ASSERT_TRUE(cachedImage); in TEST_F()
[all …]
DImageDecodingStore.cpp90 …rator* generator, const SkISize& scaledSize, size_t index, const ScaledImageFragment** cachedImage) in lockCache() argument
92 ASSERT(cachedImage); in lockCache()
101 return lockCacheEntryInternal(iter->value.get(), cachedImage, &cacheEntriesToDelete); in lockCache()
105 …ingStore::unlockCache(const ImageFrameGenerator* generator, const ScaledImageFragment* cachedImage) in unlockCache() argument
110 cachedImage->bitmap().unlockPixels(); in unlockCache()
111 …find(ImageCacheEntry::makeCacheKey(generator, cachedImage->scaledSize(), cachedImage->index(), cac… in unlockCache()
336 …EntryInternal(ImageCacheEntry* cacheEntry, const ScaledImageFragment** cachedImage, Vector<OwnPtr<… in lockCacheEntryInternal() argument
338 ScaledImageFragment* image = cacheEntry->cachedImage(); in lockCacheEntryInternal()
351 *cachedImage = image; in lockCacheEntryInternal()
DImageDecodingStore.h210 virtual size_t memoryUsageInBytes() const { return cachedImage()->bitmap().getSafeSize(); } in memoryUsageInBytes()
218 const ScaledImageFragment* cachedImage() const { return m_cachedImage.get(); } in cachedImage() function
219 ScaledImageFragment* cachedImage() { return m_cachedImage.get(); } in cachedImage() function
/external/chromium_org/third_party/WebKit/Source/core/frame/
DImageBitmapTest.cpp96 ASSERT_EQ(imageBitmapNoCrop->bitmapImage().get(), imageElement->cachedImage()->image()); in TEST_F()
97 ASSERT_EQ(imageBitmapInteriorCrop->bitmapImage().get(), imageElement->cachedImage()->image()); in TEST_F()
98 ASSERT_EQ(imageBitmapExteriorCrop->bitmapImage().get(), imageElement->cachedImage()->image()); in TEST_F()
101 ASSERT_NE(emptyImage.get(), imageElement->cachedImage()->image()); in TEST_F()
140 …ASSERT_EQ(imageNoCrop->cachedImage()->cacheLiveResourcePriority(), Resource::CacheLiveResourcePrio… in TEST_F()
141 …ASSERT_EQ(imageInteriorCrop->cachedImage()->cacheLiveResourcePriority(), Resource::CacheLiveResour… in TEST_F()
142 …ASSERT_EQ(imageExteriorCrop->cachedImage()->cacheLiveResourcePriority(), Resource::CacheLiveResour… in TEST_F()
143 …ASSERT_EQ(imageOutsideCrop->cachedImage()->cacheLiveResourcePriority(), Resource::CacheLiveResourc… in TEST_F()
153 …ASSERT_EQ(imageNoCrop->cachedImage()->cacheLiveResourcePriority(), Resource::CacheLiveResourcePrio… in TEST_F()
154 …ASSERT_EQ(imageInteriorCrop->cachedImage()->cacheLiveResourcePriority(), Resource::CacheLiveResour… in TEST_F()
[all …]
/external/chromium_org/third_party/WebKit/Source/core/html/
DImageDocument.cpp132 document()->cachedImage()->appendData(data, length); in appendBytes()
139 ImageResource* cachedImage = document()->cachedImage(); in finish() local
140 cachedImage->finish(); in finish()
141 cachedImage->setResponse(document()->frame()->loader().documentLoader()->response()); in finish()
145 …IntSize size = flooredIntSize(cachedImage->imageSizeForRenderer(document()->imageElement()->render… in finish()
224 …LayoutSize imageSize = m_imageElement->cachedImage()->imageSizeForRenderer(m_imageElement->rendere… in scale()
238 …LayoutSize imageSize = m_imageElement->cachedImage()->imageSizeForRenderer(m_imageElement->rendere… in resizeImageToFit()
277 …if (m_imageElement->cachedImage()->imageSizeForRenderer(m_imageElement->renderer(), pageZoomFactor… in imageUpdated()
293 …LayoutSize imageSize = m_imageElement->cachedImage()->imageSizeForRenderer(m_imageElement->rendere… in restoreImageSize()
314 …LayoutSize imageSize = m_imageElement->cachedImage()->imageSizeForRenderer(m_imageElement->rendere… in imageFitsInWindow()
[all …]
DHTMLImageLoader.cpp64 ImageResource* cachedImage = image(); in notifyFinished() local
67 ImageLoader::notifyFinished(cachedImage); in notifyFinished()
69 … bool loadError = cachedImage->errorOccurred() || cachedImage->response().httpStatusCode() >= 400; in notifyFinished()
DImageDocument.h43 ImageResource* cachedImage();
/external/chromium_org/third_party/WebKit/Source/core/html/canvas/
DCanvasRenderingContext.cpp62 ImageResource* cachedImage = image->cachedImage(); in wouldTaintOrigin() local
63 if (!cachedImage->image()->currentFrameHasSingleSecurityOrigin()) in wouldTaintOrigin()
66 …return wouldTaintOrigin(cachedImage->response().url()) && !cachedImage->passesAccessControlCheck(c… in wouldTaintOrigin()
/external/chromium_org/third_party/WebKit/Source/core/rendering/
DRenderImage.cpp148 if (!m_altText.isEmpty() && setImageSizeForAltText(m_imageResource->cachedImage())) in styleDidChange()
170 …if (m_imageResource->cachedImage() && m_imageResource->cachedImage()->hasDevicePixelRatioHeaderVal… in imageChanged()
171 m_imageDevicePixelRatio = 1 / m_imageResource->cachedImage()->devicePixelRatioHeaderValue(); in imageChanged()
191 imageSizeChanged = setImageSizeForAltText(m_imageResource->cachedImage()); in imageChanged()
294 if (newImage == m_imageResource->cachedImage()) { in notifyFinished()
494 if (m_imageResource->cachedImage() && !m_imageResource->cachedImage()->isLoaded()) in foregroundIsKnownToBeOpaqueInRect()
513 …return m_imageResource->cachedImage() && m_imageResource->cachedImage()->currentFrameKnownToBeOpaq… in foregroundIsKnownToBeOpaqueInRect()
590 …if (!m_imageResource || !m_imageResource->cachedImage() || m_imageResource->cachedImage()->isLoade… in updateImageLoadingPriority()
607 optimizer.notifyImageResourceVisibility(m_imageResource->cachedImage(), status); in updateImageLoadingPriority()
643 ImageResource* cachedImage = m_imageResource->cachedImage(); in embeddedContentBox() local
[all …]
DRenderImage.h47 …ImageResource* cachedImage() const { return m_imageResource ? m_imageResource->cachedImage() : 0; } in cachedImage() function
DRenderImageResourceStyleImage.cpp52 m_cachedImage = toStyleFetchedImage(m_styleImage)->cachedImage(); in initialize()
/external/chromium_org/third_party/WebKit/Source/core/css/
DCSSCursorImageValue.cpp121 StyleImage* CSSCursorImageValue::cachedImage(ResourceFetcher* loader, float deviceScaleFactor) in cachedImage() function in WebCore::CSSCursorImageValue
137 StyleFetchedImage* cachedImage = svgImageValue->cachedImage(loader); in cachedImage() local
138 m_image = cachedImage; in cachedImage()
139 return cachedImage; in cachedImage()
144 m_image = toCSSImageValue(m_imageValue.get())->cachedImage(loader); in cachedImage()
178 return toStyleFetchedImage(m_image)->cachedImage()->url().string(); in cachedImageURL()
DCSSImageValue.cpp62 StyleFetchedImage* CSSImageValue::cachedImage(ResourceFetcher* fetcher, const ResourceLoaderOptions… in cachedImage() function in WebCore::CSSImageValue
74 if (ResourcePtr<ImageResource> cachedImage = fetcher->fetchImage(request)) in cachedImage() local
75 m_image = StyleFetchedImage::create(cachedImage.get()); in cachedImage()
85 if (Resource* cachedResource = toStyleFetchedImage(m_image)->cachedImage()) in hasFailedOrCanceledSubresources()
DCSSImageValue.h41 StyleFetchedImage* cachedImage(ResourceFetcher*, const ResourceLoaderOptions&, CORSEnabled);
42 …StyleFetchedImage* cachedImage(ResourceFetcher* fetcher) { return cachedImage(fetcher, ResourceFet… in cachedImage() function
DCSSImageSetValue.cpp107 if (ResourcePtr<ImageResource> cachedImage = loader->fetchImage(request)) { in cachedImageSet() local
108 … m_imageSet = StyleFetchedImageSet::create(cachedImage.get(), image.scaleFactor, this); in cachedImageSet()
166 if (Resource* cachedResource = toStyleFetchedImageSet(m_imageSet)->cachedImage()) in hasFailedOrCanceledSubresources()
DCSSCrossfadeValue.cpp69 StyleFetchedImage* styleImageResource = toCSSImageValue(value)->cachedImage(fetcher); in cachedImageForCSSValue()
73 return styleImageResource->cachedImage(); in cachedImageForCSSValue()
/external/chromium_org/third_party/WebKit/Source/core/dom/
DClipboard.cpp225 setDragImageResource(toHTMLImageElement(image)->cachedImage(), location); in setDragImage()
262 if (image->cachedImage() && !image->cachedImage()->errorOccurred()) in getImageResource()
263 return image->cachedImage(); in getImageResource()
271 ImageResource* cachedImage = getImageResource(element); in writeImageToDataObject() local
272 …if (!cachedImage || !cachedImage->imageForRenderer(element->renderer()) || !cachedImage->isLoaded(… in writeImageToDataObject()
275 SharedBuffer* imageBuffer = cachedImage->imageForRenderer(element->renderer())->data(); in writeImageToDataObject()
279 String imageExtension = cachedImage->image()->filenameExtension(); in writeImageToDataObject()
283 String filename = cachedImage->response().suggestedFilename(); in writeImageToDataObject()
/external/chromium_org/third_party/WebKit/Source/modules/imagebitmap/
DImageBitmapFactories.cpp54 if (ImageResource* cachedImage = image->cachedImage()) in sizeFor() local
55 … return cachedImage->imageSizeForRenderer(image->renderer(), 1.0f); // FIXME: Not sure about this. in sizeFor()
89 if (!image->cachedImage()) { in createImageBitmap()
93 if (image->cachedImage()->image()->isSVGImage()) { in createImageBitmap()
101 if (!image->cachedImage()->image()->currentFrameHasSingleSecurityOrigin()) { in createImageBitmap()
105 …if (!image->cachedImage()->passesAccessControlCheck(eventTarget->toDOMWindow()->document()->securi… in createImageBitmap()
/external/chromium_org/third_party/WebKit/Source/core/page/
DPageSerializer.cpp228 ImageResource* cachedImage = imageElement->cachedImage(); in serializeFrame() local
229 addImageToResources(cachedImage, imageElement->renderer(), url); in serializeFrame()
234 ImageResource* cachedImage = inputElement->imageLoader()->image(); in serializeFrame() local
235 addImageToResources(cachedImage, inputElement->renderer(), url); in serializeFrame()
358 addImageToResources(styleImage->cachedImage(), 0, styleImage->cachedImage()->url()); in retrieveResourcesForCSSValue()
/external/chromium_org/third_party/WebKit/Source/core/rendering/style/
DShapeValue.h75 …bool isImageValid() const { return image() && image()->cachedImage() && image()->cachedImage()->ha… in isImageValid()
/external/chromium_org/third_party/WebKit/Source/core/rendering/svg/
DRenderSVGImage.cpp73 if (ImageResource* cachedImage = m_imageResource->cachedImage()) { in updateImageViewport() local
74 … LayoutSize intrinsicSize = cachedImage->imageSizeForRenderer(0, style()->effectiveZoom()); in updateImageViewport()
/external/chromium_org/third_party/WebKit/Source/core/loader/
DImageLoader.cpp329 ImageResource* cachedImage = imageResource->cachedImage(); in updateRenderer() local
330 if (m_image != cachedImage && (m_imageComplete || !cachedImage)) in updateRenderer()
/external/chromium_org/third_party/WebKit/Source/core/css/resolver/
DStyleResourceLoader.cpp84 return imageValue->cachedImage(m_fetcher); in loadPendingImage()
95 return cursorImageValue->cachedImage(m_fetcher, deviceScaleFactor); in loadPendingImage()
121 shapeValue->setImage(cssImageValue->cachedImage(m_fetcher, options, PotentiallyCORSEnabled)); in loadPendingShapeImage()

12