/external/webkit/Source/WebKit2/Shared/API/c/cg/ |
WKImageCG.cpp | 44 IntSize imageSize(CGImageGetWidth(imageRef), CGImageGetHeight(imageRef)); 45 RefPtr<WebImage> webImage = WebImage::create(imageSize, toImageOptions(options)); 47 CGContextDrawImage(graphicsContext->platformContext(), CGRectMake(0, 0, imageSize.width(), imageSize.height()), imageRef);
|
/external/webkit/Source/WebCore/platform/win/ |
DragImageWin.cpp | 168 IntSize imageSize(labelSize.width() + DragLabelBorderX * 2, labelSize.height() + DragLabelBorderY * 2); 173 imageSize.setHeight(imageSize.height() + urlStringSize.height()); 175 imageSize.setWidth(MaxDragLabelWidth); 178 imageSize.setWidth(std::max(labelSize.width(), urlStringSize.width()) + DragLabelBorderX * 2); 192 image = allocImage(workingDC, imageSize, &contextRef); 205 IntRect rect(0, 0, imageSize.width(), imageSize.height()); 213 urlString = StringTruncator::rightTruncate(urlString, imageSize.width() - (DragLabelBorderX * 2.0f), *urlFont); 214 IntPoint textPos(DragLabelBorderX, imageSize.height() - (LabelBorderYOffset + urlFont->fontMetrics().descent())) [all...] |
/external/webkit/Tools/DumpRenderTree/chromium/ |
TestEventPrinter.cpp | 45 void handleImage(const char* actualHash, const char* expectedHash, const unsigned char* imageData, size_t imageSize, const char* fileName) const; 57 void handleImage(const char* actualHash, const char* expectedHash, const unsigned char* imageData, size_t imageSize, const char* fileName) const; 94 void DRTPrinter::handleImage(const char* actualHash, const char* expectedHash, const unsigned char* imageData, size_t imageSize, const char*) const 100 if (imageData && imageSize) { 103 printf("Content-Length: %d\n", static_cast<int>(imageSize)); 104 if (fwrite(imageData, 1, imageSize, stdout) != imageSize) { 140 void TestShellPrinter::handleImage(const char* actualHash, const char*, const unsigned char* imageData, size_t imageSize, const char* fileName) const 143 if (imageData && imageSize) { 150 if (fwrite(imageData, 1, imageSize, fp) != imageSize) [all...] |
/packages/apps/Gallery2/src/com/android/photos/data/ |
FileRetriever.java | 60 public boolean getMedia(Uri contentUri, MediaSize imageSize, File tempFile) { 61 if (imageSize == MediaSize.Original) { 64 if (imageSize == MediaSize.Thumbnail) { 68 return MediaCacheUtils.downsample(preview, imageSize, tempFile); 74 success = MediaCacheUtils.downsample(highRes, imageSize, tempFile); 80 } else if (imageSize == MediaSize.Thumbnail 88 success = MediaCacheUtils.downsample(bitmap, imageSize, tempFile);
|
/external/webkit/Source/WebCore/platform/mac/ |
DragImageMac.mm | 261 NSSize imageSize; 262 imageSize.width = labelSize.width + DragLabelBorderX * 2; 263 imageSize.height = labelSize.height + DragLabelBorderY * 2; 268 imageSize.height += urlStringSize.height; 270 imageSize.width = std::max(MaxDragLabelWidth + DragLabelBorderY * 2, MinDragLabelWidthBeforeClip); 273 imageSize.width = std::max(labelSize.width + DragLabelBorderX * 2, urlStringSize.width + DragLabelBorderX * 2); 275 NSImage *dragImage = [[[NSImage alloc] initWithSize: imageSize] autorelease]; 283 [path appendBezierPathWithOvalInRect: NSMakeRect(0, imageSize.height - DragLabelRadius * 2, DragLabelRadius * 2, DragLabelRadius * 2)]; 284 [path appendBezierPathWithOvalInRect: NSMakeRect(imageSize.width - DragLabelRadius * 2, imageSize.height - DragLabelRadius * 2, DragLabelRadius * 2, DragLabelRadius * 2)] [all...] |
/external/webkit/Source/WebCore/platform/image-encoders/skia/ |
PNGImageEncoder.cpp | 74 IntSize imageSize(inputSize); 75 imageSize.clampNegativeToZero(); 98 png_set_IHDR(png, info, imageSize.width(), imageSize.height(), 103 row.resize(imageSize.width() * sizeof(SkPMColor)); 104 for (int y = 0; y < imageSize.height(); ++y) { 106 preMultipliedBGRAtoRGBA(pixels, imageSize.width(), row.data()); 110 pixels += imageSize.width() * 4; 124 IntSize imageSize(bitmap.width(), bitmap.height()); 125 return encodePixels(imageSize, static_cast<unsigned char*>(bitmap.getPixels()), true, output) [all...] |
JPEGImageEncoder.cpp | 105 IntSize imageSize(inputSize); 106 imageSize.clampNegativeToZero(); 128 cinfo.image_height = imageSize.height(); 129 cinfo.image_width = imageSize.width(); 159 IntSize imageSize(bitmap.width(), bitmap.height()); 161 return encodePixels(imageSize, static_cast<unsigned char *>(bitmap.getPixels()),
|
/external/webkit/Source/WebCore/platform/graphics/win/ |
ImageCGWin.cpp | 77 IntSize imageSize = BitmapImage::size(); 81 draw(&gc, FloatRect(0.0f, 0.0f, bmpInfo.bmWidth, bmpInfo.bmHeight), FloatRect(0.0f, 0.0f, imageSize.width(), imageSize.height()), ColorSpaceDeviceRGB, CompositeCopy); 104 IntSize imageSize = BitmapImage::size(); 105 draw(ctxt, dstRect, FloatRect(0.0f, 0.0f, imageSize.width(), imageSize.height()), styleColorSpace, compositeOp);
|
ImageCairoWin.cpp | 83 IntSize imageSize = BitmapImage::size(); 87 draw(&gc, FloatRect(0.0f, 0.0f, bmpInfo.bmWidth, bmpInfo.bmHeight), FloatRect(0.0f, 0.0f, imageSize.width(), imageSize.height()), ColorSpaceDeviceRGB, CompositeCopy); 110 IntSize imageSize = BitmapImage::size(); 111 draw(ctxt, dstRect, FloatRect(0.0f, 0.0f, imageSize.width(), imageSize.height()), ColorSpaceDeviceRGB, compositeOp);
|
/external/webkit/Source/WebCore/html/ |
ImageDocument.cpp | 158 IntSize size = cachedImage->imageSize(1.0f); 238 IntSize imageSize = m_imageElement->cachedImage()->imageSize(pageZoomFactor(this)); 241 float widthScale = (float)windowSize.width() / imageSize.width(); 242 float heightScale = (float)windowSize.height() / imageSize.height(); 252 IntSize imageSize = m_imageElement->cachedImage()->imageSize(pageZoomFactor(this)); 255 m_imageElement->setWidth(static_cast<int>(imageSize.width() * scale)); 256 m_imageElement->setHeight(static_cast<int>(imageSize.height() * scale)); 292 if (m_imageElement->cachedImage()->imageSize(pageZoomFactor(this)).isEmpty() [all...] |
/external/webkit/Tools/DumpRenderTree/gtk/ |
ImageDiff.cpp | 45 GdkPixbuf* readPixbufFromStdin(long imageSize) 51 while (imageSize > 0) { 52 size_t bytesToRead = min<int>(imageSize, 2048); 62 imageSize -= static_cast<int>(bytesRead); 209 long imageSize = strtol(tokens[1], 0, 10); 211 if (imageSize > 0 && !actualImage) { 212 if (!(actualImage = readPixbufFromStdin(imageSize))) { 216 } else if (imageSize > 0 && !baselineImage) { 217 if (!(baselineImage = readPixbufFromStdin(imageSize))) {
|
/external/webkit/Source/WebCore/svg/graphics/filters/ |
SVGFEImage.cpp | 85 IntSize imageSize = m_image->size(); 89 ts << " image-size=\"" << imageSize.width() << "x" << imageSize.height() << "\"]\n";
|
/sdk/emulator/opengl/host/libs/Translator/include/GLcommon/ |
PaletteTexture.h | 23 unsigned char* uncompressTexture(GLenum internalformat,GLenum& formatOut,GLsizei width,GLsizei height,GLsizei imageSize, const GLvoid* data,GLint level);
|
TextureUtils.h | 29 GLsizei imageSize, const GLvoid* data, void * funcPtr);
|
/external/chromium/chrome/browser/ui/cocoa/location_bar/ |
bubble_decoration.mm | 70 const NSSize imageSize = [image_ size]; 72 std::floor((NSHeight(frame) - imageSize.height) / 2.0); 73 imageRect.size = imageSize; 112 const NSSize imageSize = [image_ size]; 114 std::floor((NSHeight(decorationFrame) - imageSize.height) / 2.0); 115 imageRect.size = imageSize;
|
/external/webkit/Source/WebCore/platform/graphics/wince/ |
ImageWinCE.cpp | 79 IntSize imageSize = BitmapImage::size(); 83 draw(&gc, FloatRect(0, 0, bmpInfo.bmWidth, bmpInfo.bmHeight), FloatRect(0, 0, imageSize.width(), imageSize.height()), ColorSpaceDeviceRGB, CompositeCopy); 107 IntSize imageSize = BitmapImage::size(); 108 draw(ctxt, dstRect, FloatRect(0, 0, imageSize.width(), imageSize.height()), styleColorSpace, compositeOp);
|
/external/webkit/Tools/DumpRenderTree/qt/ |
ImageDiff.cpp | 53 int imageSize = strtol(strtok(0, " "), 0, 10); 55 if (imageSize <= 0) { 63 while (imageSize > 0) { 64 size_t bytesToRead = qMin(imageSize, 2048); 67 imageSize -= static_cast<int>(bytesRead);
|
/external/webkit/Source/WebCore/rendering/svg/ |
SVGImageBufferTools.cpp | 55 IntSize imageSize(roundedImageBufferSize(clampedAbsoluteTargetRect.size())); 59 if (imageSize.isEmpty()) 62 OwnPtr<ImageBuffer> image = ImageBuffer::create(imageSize, colorSpace);
|
/external/webkit/Source/WebKit/gtk/WebCoreSupport/ |
DragClientGtk.cpp | 120 IntSize imageSize(cairo_image_surface_get_width(image), cairo_image_surface_get_height(image)); 121 gtk_window_resize(GTK_WINDOW(m_dragIconWindow), imageSize.width(), imageSize.height());
|
/sdk/emulator/opengl/host/libs/Translator/GLcommon/ |
TextureUtils.cpp | 45 GLsizei imageSize, const GLvoid* data, void * funcPtr) 60 SET_ERROR_IF((compressedSize > imageSize), GL_INVALID_VALUE); 96 unsigned char* uncompressed = uncompressTexture(internalformat,uncompressedFrmt,width,height,imageSize,data,i);
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/util/ |
ImageUtils.java | 59 public static enum ImageSize { 65 public static final ImageSize sUseImageSize; 69 sUseImageSize = ImageSize.NORMAL; 73 sUseImageSize = ImageSize.NORMAL; 76 sUseImageSize = ImageSize.SMALL; 79 sUseImageSize = ImageSize.EXTRA_SMALL;
|
/external/chromium/chrome/browser/ui/cocoa/tabs/ |
throbber_view.mm | 51 NSSize imageSize = [image size]; 52 DCHECK(imageSize.height && imageSize.width); 53 if (!imageSize.height) 55 DCHECK((int)imageSize.width % (int)imageSize.height == 0); 56 numFrames_ = (int)imageSize.width / (int)imageSize.height;
|
/external/webkit/Source/WebCore/rendering/ |
RenderImageResource.h | 65 virtual IntSize imageSize(float multiplier) const { return m_cachedImage ? m_cachedImage->imageSize(multiplier) : IntSize(); }
|
RenderImageResourceStyleImage.h | 57 virtual IntSize imageSize(float multiplier) const { return m_styleImage->imageSize(m_renderer, multiplier); }
|
/external/webkit/Source/WebCore/rendering/style/ |
StyleCachedImage.cpp | 52 IntSize StyleCachedImage::imageSize(const RenderObject* /*renderer*/, float multiplier) const 54 return m_image->imageSize(multiplier);
|