Searched refs:sourceRect (Results 1 - 25 of 27) sorted by relevance

12

/external/webkit/Source/WebCore/platform/graphics/haiku/
H A DStillImageHaiku.cpp67 const FloatRect& sourceRect, ColorSpace, CompositeOperator op)
74 context->platformContext()->DrawBitmap(&m_bitmap, sourceRect, destRect);
66 draw(GraphicsContext* context, const FloatRect& destRect, const FloatRect& sourceRect, ColorSpace, CompositeOperator op) argument
H A DImageBufferHaiku.cpp232 BRect sourceRect(0, 0, size.width() - 1, size.height() - 1);
233 sourceRect = BRect(rect) & sourceRect;
239 destRows += (rect.x() - static_cast<int>(sourceRect.left)) * 4
240 + (rect.y() - static_cast<int>(sourceRect.top)) * destBytesPerRow;
246 sourceRows += static_cast<int>(sourceRect.left) * 4
247 + static_cast<int>(sourceRect.top) * sourceBytesPerRow;
249 unsigned rows = sourceRect.IntegerHeight() + 1;
250 unsigned columns = sourceRect.IntegerWidth() + 1;
272 static void putImageData(ImageData* source, const IntRect& sourceRect, cons argument
305 putUnmultipliedImageData(ImageData* source, const IntRect& sourceRect, const IntPoint& destPoint) argument
312 putPremultipliedImageData(ImageData* source, const IntRect& sourceRect, const IntPoint& destPoint) argument
[all...]
/external/webkit/Source/WebCore/platform/graphics/wince/
H A DImageBufferWinCE.cpp139 IntRect sourceRect(0, 0, bitmap->width(), bitmap->height());
140 sourceRect.intersect(rect);
141 if (sourceRect.isEmpty())
146 src += (sourceRect.y() * bitmap->width() + sourceRect.x()) * 4;
147 dst += ((sourceRect.y() - rect.y()) * rect.width() + sourceRect.x() - rect.x()) * 4;
148 int bytesToCopy = sourceRect.width() * 4;
149 int srcSkip = (bitmap->width() - sourceRect.width()) * 4;
150 int dstSkip = (rect.width() - sourceRect
191 putImageData(ByteArray* source, const IntSize& sourceSize, const IntRect& sourceRect, const IntPoint& destPoint, SharedBitmap* bitmap) argument
235 putUnmultipliedImageData(ByteArray* source, const IntSize& sourceSize, const IntRect& sourceRect, const IntPoint& destPoint) argument
240 putPremultipliedImageData(ByteArray* source, const IntSize& sourceSize, const IntRect& sourceRect, const IntPoint& destPoint) argument
[all...]
/external/webkit/Source/ThirdParty/ANGLE/src/libGLESv2/
H A DBlit.h32 // sourceRect, xoffset, yoffset are in D3D coordinates (0,0 in upper-left)
34 bool formatConvert(IDirect3DSurface9 *source, const RECT &sourceRect, GLenum destFormat, GLint xoffset, GLint yoffset, IDirect3DSurface9 *dest);
50 IDirect3DTexture9 *copySurfaceToTexture(IDirect3DSurface9 *surface, const RECT &sourceRect);
51 void setViewport(const RECT &sourceRect, GLint xoffset, GLint yoffset);
H A DBlit.cpp290 bool Blit::formatConvert(IDirect3DSurface9 *source, const RECT &sourceRect, GLenum destFormat, GLint xoffset, GLint yoffset, IDirect3DSurface9 *dest) argument
292 IDirect3DTexture9 *texture = copySurfaceToTexture(source, sourceRect);
305 setViewport(sourceRect, xoffset, yoffset);
383 IDirect3DTexture9 *Blit::copySurfaceToTexture(IDirect3DSurface9 *surface, const RECT &sourceRect) argument
398 HRESULT result = device->CreateTexture(sourceRect.right - sourceRect.left, sourceRect.bottom - sourceRect.top, 1, D3DUSAGE_RENDERTARGET, sourceDesc.Format, D3DPOOL_DEFAULT, &texture, NULL);
417 result = device->StretchRect(surface, &sourceRect, textureSurface, NULL, D3DTEXF_NONE);
431 void Blit::setViewport(const RECT &sourceRect, GLin argument
[all...]
H A DTexture.cpp942 RECT sourceRect = {x, y, x + width, y + height}; local
943 result = surface->LockRect(&sourceLock, &sourceRect, 0);
1292 RECT sourceRect; local
1293 sourceRect.left = xoffset;
1294 sourceRect.top = yoffset;
1295 sourceRect.right = xoffset + width;
1296 sourceRect.bottom = yoffset + height;
1302 result = getDevice()->UpdateSurface(img->surface, &sourceRect, destLevel, &destPoint);
1358 RECT sourceRect; local
1359 sourceRect
1412 RECT sourceRect; local
1829 RECT sourceRect; local
2192 RECT sourceRect; local
2279 RECT sourceRect; local
[all...]
H A DContext.cpp3298 RECT sourceRect; local
3303 sourceRect.left = srcX0;
3304 sourceRect.right = srcX1;
3310 sourceRect.left = srcX1;
3312 sourceRect.right = srcX0;
3320 sourceRect.bottom = srcY1;
3322 sourceRect.top = srcY0;
3327 sourceRect.bottom = srcY0;
3329 sourceRect.top = srcY1;
3333 RECT sourceScissoredRect = sourceRect;
[all...]
/external/webkit/Source/WebCore/platform/graphics/chromium/
H A DImageLayerChromium.cpp102 const IntRect sourceRect = layerBounds(); local
109 float scaleX = destSize.width() / static_cast<float>(sourceRect.size().width());
110 float scaleY = destSize.height() / static_cast<float>(sourceRect.size().height());
H A DLayerTilerChromium.cpp313 IntRect sourceRect = tileContentRect(tile); local
314 const IntPoint anchor = sourceRect.location();
315 sourceRect.intersect(layerRectToContentRect(tile->m_dirtyLayerRect));
317 // make sure that sourceRect doesn't extend outside of it.
318 sourceRect.intersect(paintRect);
319 if (sourceRect.isEmpty())
331 IntRect destRect(IntPoint(sourceRect.x() - anchor.x(), sourceRect.y() - anchor.y()), sourceRect.size());
338 IntPoint paintOffset(sourceRect
[all...]
H A DTransparencyWin.cpp459 SkIRect sourceRect = { 0, 0, m_layerSize.width(), m_layerSize.height() }; local
460 destCanvas->drawBitmapRect(*bitmap, &sourceRect, destRect, &paint);
494 SkIRect sourceRect = { 0, 0, m_layerSize.width(), m_layerSize.height() }; local
495 destCanvas->drawBitmapRect(bitmap, &sourceRect, destRect, 0);
/external/webkit/Source/WebCore/platform/graphics/android/
H A DImageBufferAndroid.cpp181 void ImageBuffer::putUnmultipliedImageData(ByteArray* source, const IntSize& sourceSize, const IntRect& sourceRect, const IntPoint& destPoint) argument
194 ASSERT(sourceRect.width() > 0);
195 ASSERT(sourceRect.height() > 0);
197 int originx = sourceRect.x();
198 int destx = destPoint.x() + sourceRect.x();
202 ASSERT(originx <= sourceRect.maxX());
204 int endx = destPoint.x() + sourceRect.maxX();
209 int originy = sourceRect.y();
210 int desty = destPoint.y() + sourceRect.y();
214 ASSERT(originy <= sourceRect
[all...]
/external/webkit/Source/WebCore/platform/graphics/cairo/
H A DImageBufferCairo.cpp229 void putImageData(ByteArray*& source, const IntSize& sourceSize, const IntRect& sourceRect, const IntPoint& destPoint, ImageBufferData& data, const IntSize& size) argument
235 ASSERT(sourceRect.width() > 0);
236 ASSERT(sourceRect.height() > 0);
238 int originx = sourceRect.x();
239 int destx = destPoint.x() + sourceRect.x();
243 ASSERT(originx <= sourceRect.maxX());
245 int endx = destPoint.x() + sourceRect.maxX();
250 int originy = sourceRect.y();
251 int desty = destPoint.y() + sourceRect.y();
255 ASSERT(originy <= sourceRect
286 putUnmultipliedImageData(ByteArray* source, const IntSize& sourceSize, const IntRect& sourceRect, const IntPoint& destPoint) argument
291 putPremultipliedImageData(ByteArray* source, const IntSize& sourceSize, const IntRect& sourceRect, const IntPoint& destPoint) argument
[all...]
/external/webkit/Source/WebCore/platform/graphics/qt/
H A DImageBufferQt.cpp306 void putImageData(ByteArray*& source, const IntSize& sourceSize, const IntRect& sourceRect, const IntPoint& destPoint, ImageBufferData& data, const IntSize& size) argument
308 ASSERT(sourceRect.width() > 0);
309 ASSERT(sourceRect.height() > 0);
311 int originx = sourceRect.x();
312 int destx = destPoint.x() + sourceRect.x();
316 ASSERT(originx <= sourceRect.maxX());
318 int endx = destPoint.x() + sourceRect.maxX();
323 int originy = sourceRect.y();
324 int desty = destPoint.y() + sourceRect.y();
328 ASSERT(originy <= sourceRect
386 putUnmultipliedImageData(ByteArray* source, const IntSize& sourceSize, const IntRect& sourceRect, const IntPoint& destPoint) argument
391 putPremultipliedImageData(ByteArray* source, const IntSize& sourceSize, const IntRect& sourceRect, const IntPoint& destPoint) argument
[all...]
H A DTextureMapperQt.h40 IntRect sourceRect() const { return IntRect(0, 0, contentSize().width(), contentSize().height()); } function in class:WebCore::BitmapTextureQt
H A DTextureMapperQt.cpp151 maskPainter.drawPixmap(QRect(0, 0, pixmap.width(), pixmap.height()), mask->m_pixmap, mask->sourceRect());
160 painter->drawPixmap(targetRect, pixmap, textureQt.sourceRect());
H A DGraphicsContextQt.cpp655 QRect sourceRect(intersectRect.x() - imageRect.x(), intersectRect.y() - imageRect.y(), intersectRect.width(), intersectRect.height());
657 p->drawPixmap(destStart, *image, sourceRect);
/external/webkit/Source/WebCore/platform/graphics/skia/
H A DImageBufferSkia.cpp270 void putImageData(ByteArray*& source, const IntSize& sourceSize, const IntRect& sourceRect, const IntPoint& destPoint, argument
273 ASSERT(sourceRect.width() > 0);
274 ASSERT(sourceRect.height() > 0);
276 int originX = sourceRect.x();
277 int destX = destPoint.x() + sourceRect.x();
281 ASSERT(originX < sourceRect.maxX());
283 int endX = destPoint.x() + sourceRect.maxX();
288 int originY = sourceRect.y();
289 int destY = destPoint.y() + sourceRect.y();
293 ASSERT(originY < sourceRect
345 putPremultipliedImageData(ByteArray* source, const IntSize& sourceSize, const IntRect& sourceRect, const IntPoint& destPoint) argument
[all...]
/external/webkit/Source/WebCore/platform/graphics/cg/
H A DImageBufferDataCG.h58 void putData(ByteArray*& source, const IntSize& sourceSize, const IntRect& sourceRect, const IntPoint& destPoint, const IntSize& size, bool accelerateRendering, bool unmultiplied);
H A DImageBufferDataCG.cpp255 void ImageBufferData::putData(ByteArray*& source, const IntSize& sourceSize, const IntRect& sourceRect, const IntPoint& destPoint, const IntSize& size, bool accelerateRendering, bool unmultiplied) argument
257 ASSERT(sourceRect.width() > 0);
258 ASSERT(sourceRect.height() > 0);
260 int originx = sourceRect.x();
261 int destx = destPoint.x() + sourceRect.x();
265 ASSERT(originx <= sourceRect.maxX());
267 int endx = destPoint.x() + sourceRect.maxX();
272 int originy = sourceRect.y();
273 int desty = destPoint.y() + sourceRect.y();
277 ASSERT(originy <= sourceRect
[all...]
H A DImageBufferCG.cpp268 void ImageBuffer::putUnmultipliedImageData(ByteArray* source, const IntSize& sourceSize, const IntRect& sourceRect, const IntPoint& destPoint) argument
272 m_data.putData(source, sourceSize, sourceRect, destPoint, m_size, m_accelerateRendering, true);
275 void ImageBuffer::putPremultipliedImageData(ByteArray* source, const IntSize& sourceSize, const IntRect& sourceRect, const IntPoint& destPoint) argument
279 m_data.putData(source, sourceSize, sourceRect, destPoint, m_size, m_accelerateRendering, false);
/external/webkit/Source/WebCore/platform/graphics/wx/
H A DImageBufferWx.cpp75 void ImageBuffer::putUnmultipliedImageData(ByteArray* source, const IntSize& sourceSize, const IntRect& sourceRect, const IntPoint& destPoint) argument
80 void ImageBuffer::putPremultipliedImageData(ByteArray* source, const IntSize& sourceSize, const IntRect& sourceRect, const IntPoint& destPoint) argument
/external/webkit/Source/WebCore/platform/graphics/
H A DImageBuffer.h92 void putUnmultipliedImageData(ByteArray*, const IntSize& sourceSize, const IntRect& sourceRect, const IntPoint& destPoint);
93 void putPremultipliedImageData(ByteArray*, const IntSize& sourceSize, const IntRect& sourceRect, const IntPoint& destPoint);
/external/webkit/Source/WebKit/gtk/WebCoreSupport/
H A DChromeClientGtk.cpp420 GdkRectangle sourceRect = area; local
421 sourceRect.x -= delta.width();
422 sourceRect.y -= delta.height();
427 if (gdk_rectangle_intersect(&area, &sourceRect, &moveRect)) {
440 if (gdk_rectangle_intersect(&area, &sourceRect, &moveRect)) {
/external/webkit/Source/WebCore/html/canvas/
H A DCanvasRenderingContext2D.cpp1285 FloatRect sourceRect = c->roundToDevicePixels(normalizedSrcRect); local
1287 c->drawImage(cachedImage->image(), ColorSpaceDeviceRGB, destRect, sourceRect, op);
1348 FloatRect sourceRect = c->roundToDevicePixels(srcRect);
1369 c->drawImageBuffer(buffer, ColorSpaceDeviceRGB, destRect, sourceRect, state().m_globalComposite);
1432 FloatRect sourceRect = c->roundToDevicePixels(srcRect); local
1438 c->scale(FloatSize(destRect.width() / sourceRect.width(), destRect.height() / sourceRect.height()));
1439 c->translate(-sourceRect.x(), -sourceRect.y());
1726 IntRect sourceRect(destRec
[all...]
/external/webkit/Source/WebKit/mac/Plugins/Hosted/
H A DWebHostedNetscapePluginView.mm424 NSRect sourceRect = { NSZeroPoint, [_cachedSnapshot.get() size] };
425 [_cachedSnapshot.get() drawInRect:[self bounds] fromRect:sourceRect operation:NSCompositeSourceOver fraction:1];

Completed in 641 milliseconds

12