Searched refs:source_size (Results 1 - 25 of 29) sorted by relevance

12

/external/chromium_org/chrome/browser/thumbnails/
H A Dsimple_thumbnail_crop.cc28 const gfx::Size& source_size,
32 DCHECK(!source_size.IsEmpty());
34 *clipping_rect = GetClippingRect(source_size, target_size_, &clip_result);
139 gfx::Rect SimpleThumbnailCrop::GetClippingRect(const gfx::Size& source_size, argument
150 if (source_size.width() < desired_size.width() ||
151 source_size.height() < desired_size.height()) {
159 static_cast<float>(source_size.width()) / source_size.height();
163 int new_width = static_cast<int>(source_size.height() * desired_aspect);
164 int x_offset = (source_size
27 GetCanvasCopyInfo( const gfx::Size& source_size, ui::ScaleFactor scale_factor, gfx::Rect* clipping_rect, gfx::Size* target_size) const argument
[all...]
H A Dcontent_based_thumbnailing_algorithm.cc44 const gfx::Size& source_size,
48 DCHECK(!source_size.IsEmpty());
54 source_size, target_thumbnail_size, target_size, &clipping_method);
206 const gfx::Size& source_size,
218 if (source_size.width() < thumbnail_size.width() ||
219 source_size.height() < thumbnail_size.height()) {
223 } else if (source_size.width() < thumbnail_size.width() * 4 ||
224 source_size.height() < thumbnail_size.height() * 4) {
225 clipping_rect = gfx::Rect(source_size);
226 *target_size = source_size;
43 GetCanvasCopyInfo( const gfx::Size& source_size, ui::ScaleFactor scale_factor, gfx::Rect* clipping_rect, gfx::Size* target_size) const argument
205 GetClippingRect( const gfx::Size& source_size, const gfx::Size& thumbnail_size, gfx::Size* target_size, ClipResult* clip_result) argument
[all...]
H A Dcontent_based_thumbnailing_algorithm_unittest.cc68 gfx::Size source_size(1000, 600);
71 source_size, ui::SCALE_FACTOR_100P, &clipping_rect, &target_size);
73 EXPECT_EQ(source_size.ToString(), clipping_rect.size().ToString());
75 EXPECT_EQ(source_size, target_size);
77 source_size.SetSize(6000, 3000);
79 source_size, ui::SCALE_FACTOR_100P, &clipping_rect, &target_size);
81 EXPECT_EQ(source_size.ToString(), clipping_rect.size().ToString());
83 EXPECT_LT(target_size.width(), source_size.width());
84 EXPECT_LT(target_size.height(), source_size.height());
86 static_cast<float>(source_size
[all...]
H A Dthumbnailing_algorithm.h26 // canvas of |source_size|. Auxiliary |scale_factor| helps compute the target
31 virtual ClipResult GetCanvasCopyInfo(const gfx::Size& source_size,
H A Dcontent_based_thumbnailing_algorithm.h20 virtual ClipResult GetCanvasCopyInfo(const gfx::Size& source_size,
49 static gfx::Rect GetClippingRect(const gfx::Size& source_size,
H A Dsimple_thumbnail_crop.h21 virtual ClipResult GetCanvasCopyInfo(const gfx::Size& source_size,
49 static gfx::Rect GetClippingRect(const gfx::Size& source_size,
/external/chromium_org/remoting/client/
H A Dframe_consumer.h40 virtual void SetSourceSize(const SkISize& source_size,
H A Dframe_consumer_proxy.cc45 void FrameConsumerProxy::SetSourceSize(const SkISize& source_size, argument
49 &FrameConsumerProxy::SetSourceSize, this, source_size, source_dpi));
54 frame_consumer_->SetSourceSize(source_size, source_dpi);
H A Dframe_consumer_proxy.h37 virtual void SetSourceSize(const SkISize& source_size,
H A Drectangle_update_decoder.cc69 SkISize source_size = SkISize::Make(packet->format().screen_width(), local
71 if (source_size_ != source_size) {
72 source_size_ = source_size;
/external/chromium_org/media/base/
H A Daudio_fifo.cc64 const int source_size = source->frames(); local
65 CHECK_LE(source_size + frames(), max_frames_);
71 GetSizes(write_pos_, max_frames(), source_size, &append_size, &wrap_size);
89 Atomic32 new_frames_pushed = frames_pushed_ + source_size;
93 write_pos_ = UpdatePos(write_pos_, source_size, max_frames());
/external/chromium_org/chrome/browser/history/
H A Dselect_favicon_frames.cc39 int source_size) {
48 int shift = (desired_size - source_size) / 2;
49 SkRect dest(SkRect::MakeXYWH(shift, shift, source_size, source_size));
103 int source_size = static_cast<int>(16 * scale + 0.5f); local
105 if (candidate_sizes[i].width() == source_size &&
106 candidate_sizes[i].height() == source_size) {
114 if (candidate_sizes[i].width() * scale == source_size &&
115 candidate_sizes[i].height() * scale == source_size) {
37 PadWithBorder(const SkBitmap& contents, int desired_size, int source_size) argument
/external/chromium_org/remoting/client/jni/
H A Djni_frame_consumer.h37 virtual void SetSourceSize(const SkISize& source_size,
H A Djni_frame_consumer.cc96 void JniFrameConsumer::SetSourceSize(const SkISize& source_size, argument
102 view_size_ = source_size;
/external/chromium_org/remoting/base/
H A Dutil.cc81 const SkISize& source_size,
90 DCHECK(SkIRect::MakeSize(source_size).contains(source_buffer_rect));
93 DCHECK(ScaleRect(source_buffer_rect, source_size, dest_size).
109 if (source_size == dest_size) {
159 source_size.width(),
160 source_size.height(),
177 source_size.width(),
178 source_size.height(),
76 ConvertAndScaleYUVToRGB32Rect(const uint8* source_yplane, const uint8* source_uplane, const uint8* source_vplane, int source_ystride, int source_uvstride, const SkISize& source_size, const SkIRect& source_buffer_rect, uint8* dest_buffer, int dest_stride, const SkISize& dest_size, const SkIRect& dest_buffer_rect, const SkIRect& dest_rect) argument
H A Dutil.h29 // as ratio between |dest_size| and |source_size|. The target rectangle
44 const SkISize& source_size,
/external/chromium_org/chrome/renderer/
H A Dmock_printer.cc46 uint32 source_size,
48 : source_size_(source_size),
51 source_data_.reset(new uint8[source_size]);
53 memcpy(source_data_.get(), source_data, source_size);
283 uint32 source_size = pages_[page]->source_size(); local
285 source_size);
45 MockPrinterPage(const void* source_data, uint32 source_size, const printing::Image& image) argument
H A Dmock_printer.h31 uint32 source_size,
37 uint32 source_size() const { return source_size_; } function in class:MockPrinterPage
/external/chromium/sdch/open-vcdiff/src/
H A Dblockhash.h123 BlockHash(const char* source_data, size_t source_size, int starting_offset);
357 size_t source_size() { return source_size_; } function in class:open_vcdiff::BlockHash
368 // to calling AddAllBlocksThroughIndex(source_data + source_size).
H A Dblockhash.cc29 size_t source_size,
32 source_size_(source_size),
222 int last_legal_hash_index = static_cast<int>(source_size() - kBlockSize);
28 BlockHash(const char* source_data, size_t source_size, int starting_offset) argument
/external/chromium_org/sdch/open-vcdiff/src/
H A Dblockhash.h123 BlockHash(const char* source_data, size_t source_size, int starting_offset);
357 size_t source_size() { return source_size_; } function in class:open_vcdiff::BlockHash
368 // to calling AddAllBlocksThroughIndex(source_data + source_size).
H A Dblockhash.cc30 size_t source_size,
33 source_size_(source_size),
223 int last_legal_hash_index = static_cast<int>(source_size() - kBlockSize);
29 BlockHash(const char* source_data, size_t source_size, int starting_offset) argument
/external/open-vcdiff/src/
H A Dblockhash.h123 BlockHash(const char* source_data, size_t source_size, int starting_offset);
357 size_t source_size() { return source_size_; } function in class:open_vcdiff::BlockHash
368 // to calling AddAllBlocksThroughIndex(source_data + source_size).
/external/chromium_org/remoting/client/plugin/
H A Dpepper_view.cc205 void PepperView::SetSourceSize(const SkISize& source_size, argument
209 if (source_size_ == source_size && source_dpi_ == source_dpi)
212 source_size_ = source_size;
216 instance_->SetDesktopSize(source_size, source_dpi);
H A Dpepper_view.h49 virtual void SetSourceSize(const SkISize& source_size,

Completed in 284 milliseconds

12