Searched defs:clip_result (Results 1 - 5 of 5) sorted by relevance

/external/chromium_org/chrome/browser/thumbnails/
H A Dsimple_thumbnail_crop_unittest.cc68 thumbnails::ClipResult clip_result = thumbnails::CLIP_RESULT_NOT_CLIPPED; local
70 bitmap, 10, 10, &clip_result);
75 EXPECT_EQ(thumbnails::CLIP_RESULT_TALLER_THAN_WIDE, clip_result);
85 thumbnails::ClipResult clip_result = thumbnails::CLIP_RESULT_NOT_CLIPPED; local
87 bitmap, 10, 10, &clip_result);
92 EXPECT_EQ(thumbnails::CLIP_RESULT_WIDER_THAN_TALL, clip_result);
102 thumbnails::ClipResult clip_result = thumbnails::CLIP_RESULT_NOT_CLIPPED; local
104 bitmap, 10, 10, &clip_result);
109 EXPECT_EQ(thumbnails::CLIP_RESULT_MUCH_WIDER_THAN_TALL, clip_result);
119 thumbnails::ClipResult clip_result local
136 thumbnails::ClipResult clip_result = thumbnails::CLIP_RESULT_NOT_CLIPPED; local
155 thumbnails::ClipResult clip_result = algorithm->GetCanvasCopyInfo( local
202 thumbnails::ClipResult clip_result; local
[all...]
H A Dthumbnailing_context.h49 ClipResult clip_result; member in struct:thumbnails::ThumbnailingContext
H A Dcontent_based_thumbnailing_algorithm_unittest.cc29 clip_result_ = context.clip_result;
41 ClipResult clip_result() const { function in class:thumbnails::ConsumerCallbackCatcher
70 ClipResult clip_result = algorithm->GetCanvasCopyInfo( local
72 EXPECT_EQ(CLIP_RESULT_SOURCE_SAME_AS_TARGET, clip_result);
78 clip_result = algorithm->GetCanvasCopyInfo(
80 EXPECT_EQ(CLIP_RESULT_NOT_CLIPPED, clip_result);
89 clip_result = algorithm->GetCanvasCopyInfo(
91 EXPECT_EQ(CLIP_RESULT_SOURCE_IS_SMALLER, clip_result);
112 EXPECT_EQ(CLIP_RESULT_SOURCE_SAME_AS_TARGET, context->clip_result);
125 EXPECT_EQ(CLIP_RESULT_SOURCE_SAME_AS_TARGET, context->clip_result);
[all...]
H A Dcontent_based_thumbnailing_algorithm.cc81 (context->clip_result == CLIP_RESULT_WIDER_THAN_TALL ||
82 context->clip_result == CLIP_RESULT_TALLER_THAN_WIDE ||
83 context->clip_result == CLIP_RESULT_NOT_CLIPPED ||
84 context->clip_result == CLIP_RESULT_SOURCE_SAME_AS_TARGET);
110 if (context->clip_result == CLIP_RESULT_UNPROCESSED) {
121 &context->clip_result);
161 context->clip_result == CLIP_RESULT_SOURCE_SAME_AS_TARGET ? 5.0f : 2.5f;
172 ClipResult clip_result; local
176 &clip_result);
194 (context->clip_result
209 GetClippingRect( const gfx::Size& source_size, const gfx::Size& thumbnail_size, gfx::Size* target_size, ClipResult* clip_result) argument
[all...]
H A Dsimple_thumbnail_crop.cc34 ClipResult clip_result = thumbnails::CLIP_RESULT_NOT_CLIPPED; local
35 *clipping_rect = GetClippingRect(source_size, target_size_, &clip_result);
37 return clip_result;
51 &context->clip_result);
55 (context->clip_result == CLIP_RESULT_WIDER_THAN_TALL ||
56 context->clip_result == CLIP_RESULT_TALLER_THAN_WIDE ||
57 context->clip_result == CLIP_RESULT_NOT_CLIPPED);
76 ClipResult* clip_result) {
80 clip_result);
141 ClipResult* clip_result) {
73 GetClippedBitmap(const SkBitmap& bitmap, int desired_width, int desired_height, ClipResult* clip_result) argument
139 GetClippingRect(const gfx::Size& source_size, const gfx::Size& desired_size, ClipResult* clip_result) argument
195 CreateThumbnail(const SkBitmap& bitmap, const gfx::Size& desired_size, ClipResult* clip_result) argument
[all...]

Completed in 2348 milliseconds