Home
last modified time | relevance | path

Searched refs:source_rect (Results 1 – 25 of 43) sorted by relevance

12

/external/chromium_org/cc/resources/
Dtexture_uploader.cc139 const gfx::Rect& source_rect, in Upload() argument
143 CHECK(image_rect.Contains(source_rect)); in Upload()
145 bool is_full_upload = dest_offset.IsZero() && source_rect.size() == size; in Upload()
156 image, image_rect, source_rect, dest_offset, format); in Upload()
183 const gfx::Rect& source_rect, in UploadWithTexSubImage() argument
190 if (source_rect.IsEmpty()) in UploadWithTexSubImage()
195 gfx::Vector2d offset(source_rect.origin() - image_rect.origin()); in UploadWithTexSubImage()
202 RoundUp(bytes_per_pixel * source_rect.width(), 4u); in UploadWithTexSubImage()
208 size_t needed_size = upload_image_stride * source_rect.height(); in UploadWithTexSubImage()
215 for (int row = 0; row < source_rect.height(); ++row) in UploadWithTexSubImage()
[all …]
Dbitmap_skpicture_content_layer_updater.cc23 const gfx::Rect& source_rect, in Update() argument
29 source_rect.width(), source_rect.height(), kN32_SkColorType, at)); in Update()
31 updater_->PaintContentsRect(&canvas, source_rect); in Update()
34 texture(), &bitmap_, source_rect, source_rect, dest_offset); in Update()
71 const gfx::Rect& source_rect) { in PaintContentsRect() argument
75 canvas->translate(paint_rect().x() - source_rect.x(), in PaintContentsRect()
76 paint_rect().y() - source_rect.y()); in PaintContentsRect()
84 source_rect.width() * source_rect.height()); in PaintContentsRect()
Dresource_update.cc14 const gfx::Rect& source_rect, in Create() argument
16 CHECK(content_rect.Contains(source_rect)); in Create()
21 update.source_rect = source_rect; in Create()
Dimage_layer_updater.cc18 const gfx::Rect& source_rect, in Update() argument
22 queue, texture(), source_rect, dest_offset, partial_update); in Update()
38 const gfx::Rect& source_rect, in UpdateTexture() argument
43 gfx::Rect clipped_source_rect = source_rect; in UpdateTexture()
49 gfx::Vector2d(clipped_source_rect.origin() - source_rect.origin()); in UpdateTexture()
Dbitmap_content_layer_updater.cc26 const gfx::Rect& source_rect, in Update() argument
30 queue, texture(), source_rect, dest_offset, partial_update); in Update()
89 const gfx::Rect& source_rect, in UpdateTexture() argument
94 texture, &bitmap_backing_, paint_rect(), source_rect, dest_offset); in UpdateTexture()
Dresource_update.h22 const gfx::Rect& source_rect,
31 gfx::Rect source_rect; member
Dtexture_uploader.h47 const gfx::Rect& source_rect,
92 const gfx::Rect& source_rect,
97 const gfx::Rect& source_rect,
Dbitmap_skpicture_content_layer_updater.h24 const gfx::Rect& source_rect,
43 const gfx::Rect& source_rect);
Dimage_layer_updater.h25 const gfx::Rect& source_rect,
42 const gfx::Rect& source_rect,
Dbitmap_content_layer_updater.h33 const gfx::Rect& source_rect,
57 const gfx::Rect& source_rect,
Dprioritized_resource.cc81 const gfx::Rect& source_rect, in SetPixels() argument
88 resource_id(), image, image_rect, source_rect, dest_offset); in SetPixels()
/external/chromium_org/ui/snapshot/
Dsnapshot_aura.cc35 const gfx::Rect& source_rect, in MakeAsyncCopyRequest() argument
39 request->set_area(source_rect); in MakeAsyncCopyRequest()
45 const gfx::Rect& source_rect, in GrabWindowSnapshotAndScaleAsync() argument
50 source_rect, in GrabWindowSnapshotAndScaleAsync()
59 const gfx::Rect& source_rect, in GrabWindowSnapshotAsync() argument
63 source_rect, in GrabWindowSnapshotAsync()
71 const gfx::Rect& source_rect, in GrabViewSnapshotAsync() argument
74 GrabWindowSnapshotAsync(view, source_rect, background_task_runner, callback); in GrabViewSnapshotAsync()
Dsnapshot_android.cc37 const gfx::Rect& source_rect, in MakeAsyncCopyRequest() argument
46 gfx::ToEnclosingRect(gfx::ScaleRect(source_rect, device_scale_factor)); in MakeAsyncCopyRequest()
61 const gfx::Rect& source_rect, in GrabWindowSnapshotAndScaleAsync() argument
66 source_rect, in GrabWindowSnapshotAndScaleAsync()
75 const gfx::Rect& source_rect, in GrabWindowSnapshotAsync() argument
79 source_rect, in GrabWindowSnapshotAsync()
87 const gfx::Rect& source_rect, in GrabViewSnapshotAsync() argument
91 view->GetWindowAndroid(), source_rect, background_task_runner, callback); in GrabViewSnapshotAsync()
Dsnapshot.h52 const gfx::Rect& source_rect,
61 const gfx::Rect& source_rect,
66 const gfx::Rect& source_rect,
Dsnapshot_ios.mm38 const gfx::Rect& source_rect,
46 const gfx::Rect& source_rect,
Dsnapshot_mac.mm89 const gfx::Rect& source_rect,
97 const gfx::Rect& source_rect,
100 return GrabViewSnapshotAsync([[window contentView] superview], source_rect,
Dsnapshot_win.cc134 const gfx::Rect& source_rect, in GrabViewSnapshotAsync() argument
143 const gfx::Rect& source_rect, in GrabWindowSnapshotAsync() argument
Dsnapshot_aura_unittest.cc128 gfx::Rect source_rect(test_window_->bounds().size()); in GrabSnapshotForTestWindow() local
130 test_window(), root_window(), &source_rect); in GrabSnapshotForTestWindow()
137 source_rect, in GrabSnapshotForTestWindow()
/external/chromium_org/remoting/codec/
Dvideo_decoder_vpx.cc226 webrtc::DesktopRect source_rect = in RenderFrame() local
228 source_rect = webrtc::DesktopRect::MakeLTRB( in RenderFrame()
229 RoundToTwosMultiple(source_rect.left()), in RenderFrame()
230 RoundToTwosMultiple(source_rect.top()), in RenderFrame()
231 source_rect.right(), in RenderFrame()
232 source_rect.bottom()); in RenderFrame()
236 webrtc::DesktopRegion intersection(source_rect); in RenderFrame()
242 int y_offset = CalculateYOffset(source_rect.left(), source_rect.top(), in RenderFrame()
244 int uv_offset = CalculateUVOffset(source_rect.left(), source_rect.top(), in RenderFrame()
250 source_rect.width(), in RenderFrame()
[all …]
/external/chromium_org/printing/
Dpdf_metafile_cg_mac.cc184 CGRect source_rect = CGPDFPageGetBoxRect(pdf_page, kCGPDFCropBox); in RenderPage() local
187 (source_rect.size.width > source_rect.size.height); in RenderPage()
192 rotate ? source_rect.size.height : source_rect.size.width; in RenderPage()
194 rotate ? source_rect.size.width : source_rect.size.height; in RenderPage()
209 const float x_origin_offset = -1 * source_rect.origin.x; in RenderPage()
210 const float y_origin_offset = -1 * source_rect.origin.y; in RenderPage()
/external/chromium_org/ppapi/shared_impl/
Dcompositor_layer_data.h73 source_rect(PP_MakeFloatRectFromXYWH(0.0f, 0.0f, 0.0f, 0.0f)) {} in ImageLayer()
76 PP_FloatRect source_rect; member
83 source_rect(PP_MakeFloatRectFromXYWH(0.0f, 0.0f, 1.0f, 1.0f)), in TextureLayer()
89 PP_FloatRect source_rect; member
/external/chromium_org/ppapi/proxy/
Dcompositor_layer_resource.cc177 data_.texture->source_rect.point = PP_MakeFloatPoint(0.0f, 0.0f); in SetTexture()
178 data_.texture->source_rect.size = source_size_; in SetTexture()
230 data_.image->source_rect.point = PP_MakeFloatPoint(0.0f, 0.0f); in SetImage()
231 data_.image->source_rect.size = source_size_; in SetImage()
313 data_.texture->source_rect = *rect; in SetSourceRect()
317 data_.image->source_rect = *rect; in SetSourceRect()
/external/chromium_org/cc/layers/
Dtiled_layer.cc498 gfx::Rect source_rect = tiler_->TileRect(tile); in UpdateTileTextures() local
499 source_rect.Intersect(dirty_rect); in UpdateTileTextures()
502 source_rect.Intersect(paint_rect); in UpdateTileTextures()
504 tile->update_rect = source_rect; in UpdateTileTextures()
506 if (source_rect.IsEmpty()) in UpdateTileTextures()
512 gfx::Vector2d dest_offset = source_rect.origin() - anchor; in UpdateTileTextures()
517 gfx::Vector2d paint_offset = source_rect.origin() - paint_rect.origin(); in UpdateTileTextures()
520 CHECK_LE(paint_offset.x() + source_rect.width(), paint_rect.width()); in UpdateTileTextures()
521 CHECK_LE(paint_offset.y() + source_rect.height(), paint_rect.height()); in UpdateTileTextures()
524 queue, source_rect, dest_offset, tile->partial_update); in UpdateTileTextures()
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/vdpau/
Doutput.c186 VdpRect const *source_rect, in vlVdpOutputSurfaceGetBitsNative() argument
209 box = RectToPipeBox(source_rect, res); in vlVdpOutputSurfaceGetBitsNative()
626 VdpRect const *source_rect, in vlVdpOutputSurfaceRenderOutputSurface() argument
666 RectToPipe(source_rect, &src_rect), NULL, in vlVdpOutputSurfaceRenderOutputSurface()
685 VdpRect const *source_rect, in vlVdpOutputSurfaceRenderBitmapSurface() argument
725 RectToPipe(source_rect, &src_rect), NULL, in vlVdpOutputSurfaceRenderBitmapSurface()
/external/mesa3d/src/gallium/state_trackers/vdpau/
Doutput.c186 VdpRect const *source_rect, in vlVdpOutputSurfaceGetBitsNative() argument
209 box = RectToPipeBox(source_rect, res); in vlVdpOutputSurfaceGetBitsNative()
626 VdpRect const *source_rect, in vlVdpOutputSurfaceRenderOutputSurface() argument
666 RectToPipe(source_rect, &src_rect), NULL, in vlVdpOutputSurfaceRenderOutputSurface()
685 VdpRect const *source_rect, in vlVdpOutputSurfaceRenderBitmapSurface() argument
725 RectToPipe(source_rect, &src_rect), NULL, in vlVdpOutputSurfaceRenderBitmapSurface()

12