Lines Matching refs:source_rect
136 gfx::Rect source_rect,
140 CHECK(image_rect.Contains(source_rect));
142 bool is_full_upload = dest_offset.IsZero() && source_rect.size() == size;
149 image, image_rect, source_rect, dest_offset, format);
151 UploadWithTexSubImage(image, image_rect, source_rect, dest_offset, format);
179 gfx::Rect source_rect,
183 int source_rect_x = source_rect.x();
184 int source_rect_y = source_rect.y();
185 int source_rect_width = source_rect.width();
186 int source_rect_height = source_rect.height();
207 gfx::Vector2d offset(source_rect.origin() - image_rect.origin());
214 RoundUp(bytes_per_pixel * source_rect.width(), 4u);
220 size_t needed_size = upload_image_stride * source_rect.height();
227 for (int row = 0; row < source_rect.height(); ++row)
231 source_rect.width() * bytes_per_pixel);
240 source_rect.width(),
241 source_rect.height(),
249 gfx::Rect source_rect,
253 int source_rect_x = source_rect.x();
254 int source_rect_y = source_rect.y();
255 int source_rect_width = source_rect.width();
256 int source_rect_height = source_rect.height();
278 gfx::Vector2d offset(source_rect.origin() - image_rect.origin());
284 RoundUp(bytes_per_pixel * source_rect.width(), 4u);
292 source_rect.width(),
293 source_rect.height(),
299 UploadWithTexSubImage(image, image_rect, source_rect, dest_offset, format);
307 source_rect.height() * image_rect.width() * bytes_per_pixel);
311 for (int row = 0; row < source_rect.height(); ++row) {
315 source_rect.width() * bytes_per_pixel);