Searched refs:source_rect (Results 1 - 25 of 41) sorted by relevance

12

/external/chromium_org/cc/resources/
H A Dresource_update.cc14 const gfx::Rect& source_rect,
16 CHECK(content_rect.Contains(source_rect));
21 update.source_rect = source_rect;
11 Create(PrioritizedResource* resource, const SkBitmap* bitmap, const gfx::Rect& content_rect, const gfx::Rect& source_rect, const gfx::Vector2d& dest_offset) argument
H A Dbitmap_skpicture_content_layer_updater.cc23 const gfx::Rect& source_rect,
29 source_rect.width(), source_rect.height(), kN32_SkColorType, at));
31 updater_->PaintContentsRect(&canvas, source_rect);
34 texture(), &bitmap_, source_rect, source_rect, dest_offset);
71 const gfx::Rect& source_rect) {
74 // Translate the origin of content_rect to that of source_rect.
75 canvas->translate(paint_rect().x() - source_rect.x(),
76 paint_rect().y() - source_rect
21 Update( ResourceUpdateQueue* queue, const gfx::Rect& source_rect, const gfx::Vector2d& dest_offset, bool partial_update) argument
69 PaintContentsRect( SkCanvas* canvas, const gfx::Rect& source_rect) argument
[all...]
H A Dresource_update.h22 const gfx::Rect& source_rect,
31 gfx::Rect source_rect; member in struct:cc::ResourceUpdate
H A Dtexture_uploader.cc139 const gfx::Rect& source_rect,
143 CHECK(image_rect.Contains(source_rect));
145 bool is_full_upload = dest_offset.IsZero() && source_rect.size() == size;
156 image, image_rect, source_rect, dest_offset, format);
183 const gfx::Rect& source_rect,
190 if (source_rect.IsEmpty())
195 gfx::Vector2d offset(source_rect.origin() - image_rect.origin());
202 RoundUp(bytes_per_pixel * source_rect.width(), 4u);
208 size_t needed_size = upload_image_stride * source_rect.height();
215 for (int row = 0; row < source_rect
137 Upload(const uint8* image, const gfx::Rect& image_rect, const gfx::Rect& source_rect, gfx::Vector2d dest_offset, ResourceFormat format, const gfx::Size& size) argument
181 UploadWithTexSubImage(const uint8* image, const gfx::Rect& image_rect, const gfx::Rect& source_rect, gfx::Vector2d dest_offset, ResourceFormat format) argument
235 UploadWithMapTexSubImage(const uint8* image, const gfx::Rect& image_rect, const gfx::Rect& source_rect, gfx::Vector2d dest_offset, ResourceFormat format) argument
[all...]
H A Dimage_layer_updater.cc18 const gfx::Rect& source_rect,
22 queue, texture(), source_rect, dest_offset, partial_update);
38 const gfx::Rect& source_rect,
43 gfx::Rect clipped_source_rect = source_rect;
49 gfx::Vector2d(clipped_source_rect.origin() - source_rect.origin());
17 Update(ResourceUpdateQueue* queue, const gfx::Rect& source_rect, const gfx::Vector2d& dest_offset, bool partial_update) argument
36 UpdateTexture(ResourceUpdateQueue* queue, PrioritizedResource* texture, const gfx::Rect& source_rect, const gfx::Vector2d& dest_offset, bool partial_update) argument
H A Dbitmap_skpicture_content_layer_updater.h24 const gfx::Rect& source_rect,
43 const gfx::Rect& source_rect);
H A Dimage_layer_updater.h25 const gfx::Rect& source_rect,
42 const gfx::Rect& source_rect,
H A Dbitmap_content_layer_updater.cc26 const gfx::Rect& source_rect,
30 queue, texture(), source_rect, dest_offset, partial_update);
89 const gfx::Rect& source_rect,
94 texture, &bitmap_backing_, paint_rect(), source_rect, dest_offset);
24 Update( ResourceUpdateQueue* queue, const gfx::Rect& source_rect, const gfx::Vector2d& dest_offset, bool partial_update) argument
87 UpdateTexture(ResourceUpdateQueue* queue, PrioritizedResource* texture, const gfx::Rect& source_rect, const gfx::Vector2d& dest_offset, bool partial_update) argument
H A Dbitmap_content_layer_updater.h33 const gfx::Rect& source_rect,
57 const gfx::Rect& source_rect,
H A Dtexture_uploader.h44 // corresponding to source_rect to dest_offset in this sub-image.
47 const gfx::Rect& source_rect,
92 const gfx::Rect& source_rect,
97 const gfx::Rect& source_rect,
H A Dlayer_updater.h33 const gfx::Rect& source_rect,
H A Dprioritized_resource.cc81 const gfx::Rect& source_rect,
88 resource_id(), image, image_rect, source_rect, dest_offset); local
78 SetPixels(ResourceProvider* resource_provider, const uint8_t* image, const gfx::Rect& image_rect, const gfx::Rect& source_rect, const gfx::Vector2d& dest_offset) argument
H A Dprioritized_resource.h83 const gfx::Rect& source_rect,
/external/chromium_org/ui/snapshot/
H A Dsnapshot_aura.cc35 const gfx::Rect& source_rect,
39 request->set_area(source_rect);
45 const gfx::Rect& source_rect,
50 source_rect,
59 const gfx::Rect& source_rect,
63 source_rect,
71 const gfx::Rect& source_rect,
74 GrabWindowSnapshotAsync(view, source_rect, background_task_runner, callback);
33 MakeAsyncCopyRequest( gfx::NativeWindow window, const gfx::Rect& source_rect, const cc::CopyOutputRequest::CopyOutputRequestCallback& callback) argument
43 GrabWindowSnapshotAndScaleAsync( gfx::NativeWindow window, const gfx::Rect& source_rect, const gfx::Size& target_size, scoped_refptr<base::TaskRunner> background_task_runner, const GrabWindowSnapshotAsyncCallback& callback) argument
57 GrabWindowSnapshotAsync( gfx::NativeWindow window, const gfx::Rect& source_rect, scoped_refptr<base::TaskRunner> background_task_runner, const GrabWindowSnapshotAsyncPNGCallback& callback) argument
69 GrabViewSnapshotAsync( gfx::NativeView view, const gfx::Rect& source_rect, scoped_refptr<base::TaskRunner> background_task_runner, const GrabWindowSnapshotAsyncPNGCallback& callback) argument
H A Dsnapshot_android.cc37 const gfx::Rect& source_rect,
46 gfx::ToEnclosingRect(gfx::ScaleRect(source_rect, device_scale_factor));
61 const gfx::Rect& source_rect,
66 source_rect,
75 const gfx::Rect& source_rect,
79 source_rect,
87 const gfx::Rect& source_rect,
91 view->GetWindowAndroid(), source_rect, background_task_runner, callback);
35 MakeAsyncCopyRequest( gfx::NativeWindow window, const gfx::Rect& source_rect, const cc::CopyOutputRequest::CopyOutputRequestCallback& callback) argument
59 GrabWindowSnapshotAndScaleAsync( gfx::NativeWindow window, const gfx::Rect& source_rect, const gfx::Size& target_size, scoped_refptr<base::TaskRunner> background_task_runner, const GrabWindowSnapshotAsyncCallback& callback) argument
73 GrabWindowSnapshotAsync( gfx::NativeWindow window, const gfx::Rect& source_rect, scoped_refptr<base::TaskRunner> background_task_runner, const GrabWindowSnapshotAsyncPNGCallback& callback) argument
85 GrabViewSnapshotAsync( gfx::NativeView view, const gfx::Rect& source_rect, scoped_refptr<base::TaskRunner> background_task_runner, const GrabWindowSnapshotAsyncPNGCallback& callback) argument
H A Dsnapshot.h45 // These functions take a snapshot of |source_rect|, specified in layer space
52 const gfx::Rect& source_rect,
61 const gfx::Rect& source_rect,
66 const gfx::Rect& source_rect,
H A Dsnapshot_win.cc134 const gfx::Rect& source_rect,
143 const gfx::Rect& source_rect,
132 GrabViewSnapshotAsync( gfx::NativeView view, const gfx::Rect& source_rect, scoped_refptr<base::TaskRunner> background_task_runner, const GrabWindowSnapshotAsyncPNGCallback& callback) argument
141 GrabWindowSnapshotAsync( gfx::NativeWindow window, const gfx::Rect& source_rect, scoped_refptr<base::TaskRunner> background_task_runner, const GrabWindowSnapshotAsyncPNGCallback& callback) argument
H A Dsnapshot_aura_unittest.cc128 gfx::Rect source_rect(test_window_->bounds().size());
130 test_window(), root_window(), &source_rect); local
137 source_rect, local
/external/chromium_org/ppapi/shared_impl/
H A Dcompositor_layer_data.h73 source_rect(PP_MakeFloatRectFromXYWH(0.0f, 0.0f, 0.0f, 0.0f)) {}
76 PP_FloatRect source_rect; member in struct:ppapi::CompositorLayerData::ImageLayer
83 source_rect(PP_MakeFloatRectFromXYWH(0.0f, 0.0f, 1.0f, 1.0f)),
89 PP_FloatRect source_rect; member in struct:ppapi::CompositorLayerData::TextureLayer
/external/chromium_org/remoting/codec/
H A Dvideo_decoder_vpx.cc226 webrtc::DesktopRect source_rect = local
228 source_rect = webrtc::DesktopRect::MakeLTRB(
229 RoundToTwosMultiple(source_rect.left()),
230 RoundToTwosMultiple(source_rect.top()),
231 source_rect.right(),
232 source_rect.bottom());
236 webrtc::DesktopRegion intersection(source_rect);
242 int y_offset = CalculateYOffset(source_rect.left(), source_rect.top(),
244 int uv_offset = CalculateUVOffset(source_rect
[all...]
/external/chromium_org/printing/
H A Dpdf_metafile_cg_mac.cc184 CGRect source_rect = CGPDFPageGetBoxRect(pdf_page, kCGPDFCropBox); local
187 (source_rect.size.width > source_rect.size.height);
192 rotate ? source_rect.size.height : source_rect.size.width;
194 rotate ? source_rect.size.width : source_rect.size.height;
209 const float x_origin_offset = -1 * source_rect.origin.x;
210 const float y_origin_offset = -1 * source_rect.origin.y;
/external/chromium_org/ppapi/proxy/
H A Dcompositor_layer_resource.cc169 // Set the source size to (1, 1). It will be used to verify the source_rect
177 data_.texture->source_rect.point = PP_MakeFloatPoint(0.0f, 0.0f);
178 data_.texture->source_rect.size = source_size_;
224 // the source_rect passed to SetSourceRect().
230 data_.image->source_rect.point = PP_MakeFloatPoint(0.0f, 0.0f);
231 data_.image->source_rect.size = source_size_;
313 data_.texture->source_rect = *rect;
317 data_.image->source_rect = *rect;
/external/chromium_org/cc/layers/
H A Dtiled_layer.cc497 // source_rect starts as a full-sized tile with border texels included.
498 gfx::Rect source_rect = tiler_->TileRect(tile); local
499 source_rect.Intersect(dirty_rect);
501 // make sure that source_rect doesn't extend outside of it.
502 source_rect.Intersect(paint_rect);
504 tile->update_rect = source_rect;
506 if (source_rect.IsEmpty())
512 gfx::Vector2d dest_offset = source_rect.origin() - anchor;
517 gfx::Vector2d paint_offset = source_rect.origin() - paint_rect.origin();
520 CHECK_LE(paint_offset.x() + source_rect
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/state_trackers/vdpau/
H A Doutput.c186 VdpRect const *source_rect,
209 box = RectToPipeBox(source_rect, res);
626 VdpRect const *source_rect,
666 RectToPipe(source_rect, &src_rect), NULL,
685 VdpRect const *source_rect,
725 RectToPipe(source_rect, &src_rect), NULL,
185 vlVdpOutputSurfaceGetBitsNative(VdpOutputSurface surface, VdpRect const *source_rect, void *const *destination_data, uint32_t const *destination_pitches) argument
623 vlVdpOutputSurfaceRenderOutputSurface(VdpOutputSurface destination_surface, VdpRect const *destination_rect, VdpOutputSurface source_surface, VdpRect const *source_rect, VdpColor const *colors, VdpOutputSurfaceRenderBlendState const *blend_state, uint32_t flags) argument
682 vlVdpOutputSurfaceRenderBitmapSurface(VdpOutputSurface destination_surface, VdpRect const *destination_rect, VdpBitmapSurface source_surface, VdpRect const *source_rect, VdpColor const *colors, VdpOutputSurfaceRenderBlendState const *blend_state, uint32_t flags) argument
/external/mesa3d/src/gallium/state_trackers/vdpau/
H A Doutput.c186 VdpRect const *source_rect,
209 box = RectToPipeBox(source_rect, res);
626 VdpRect const *source_rect,
666 RectToPipe(source_rect, &src_rect), NULL,
685 VdpRect const *source_rect,
725 RectToPipe(source_rect, &src_rect), NULL,
185 vlVdpOutputSurfaceGetBitsNative(VdpOutputSurface surface, VdpRect const *source_rect, void *const *destination_data, uint32_t const *destination_pitches) argument
623 vlVdpOutputSurfaceRenderOutputSurface(VdpOutputSurface destination_surface, VdpRect const *destination_rect, VdpOutputSurface source_surface, VdpRect const *source_rect, VdpColor const *colors, VdpOutputSurfaceRenderBlendState const *blend_state, uint32_t flags) argument
682 vlVdpOutputSurfaceRenderBitmapSurface(VdpOutputSurface destination_surface, VdpRect const *destination_rect, VdpBitmapSurface source_surface, VdpRect const *source_rect, VdpColor const *colors, VdpOutputSurfaceRenderBlendState const *blend_state, uint32_t flags) argument

Completed in 342 milliseconds

12