Home
last modified time | relevance | path

Searched refs:GetArea (Results 1 – 25 of 58) sorted by relevance

123

/external/chromium_org/ui/gfx/geometry/
Dr_tree_base.cc358 low_bounds[start_index], high_bounds[start_index]).size().GetArea(); in ChooseSplitIndex()
359 int smallest_combined_area = low_bounds[start_index].size().GetArea() + in ChooseSplitIndex()
360 high_bounds[start_index].size().GetArea(); in ChooseSplitIndex()
364 UnionRects(low_bounds[p], high_bounds[p]).size().GetArea(); in ChooseSplitIndex()
366 low_bounds[p].size().GetArea() + high_bounds[p].size().GetArea(); in ChooseSplitIndex()
429 candidate_node->rect(), overlap_node->rect()).size().GetArea(); in OverlapIncreaseToAdd()
432 total_expanded_overlap += expanded_overlap_rect.size().GetArea(); in OverlapIncreaseToAdd()
504 expanded_rects[0].size().GetArea() - best_node->rect().size().GetArea(); in LeastAreaEnlargement()
507 int area_change = expanded_rects[i].size().GetArea() - in LeastAreaEnlargement()
508 candidate_node->rect().size().GetArea(); in LeastAreaEnlargement()
[all …]
Dsize_base.h19 Type GetArea() const { return width_ * height_; } in GetArea() function
/external/chromium_org/ui/gl/
Dgl_surface_osmesa.cc27 if (size_.GetArea() == 0) in GLSurfaceOSMesa()
54 buffer_.reset(new int32[new_size.GetArea()]); in Resize()
55 memset(buffer_.get(), 0, new_size.GetArea() * sizeof(buffer_[0])); in Resize()
/external/chromium_org/ui/views/
Drect_based_targeting_utils.cc19 int intersect_area = intersection.size().GetArea(); in PercentCoveredBy()
20 int rect_1_area = rect_1.size().GetArea(); in PercentCoveredBy()
/external/chromium_org/content/common/gpu/client/
Dgpu_memory_buffer_impl_shared_memory.cc40 if (!shared_memory->CreateAnonymous(size.GetArea() * in Create()
59 if (!shared_memory.CreateAnonymous(size.GetArea() * in AllocateForChildProcess()
120 if (!shared_memory_->Map(size_.GetArea() * BytesPerPixel(internalformat_))) in Map()
/external/chromium_org/media/video/capture/
Dvideo_capture_types.cc26 (frame_size.GetArea() >= 0) && in IsValid()
27 (frame_size.GetArea() < media::limits::kMaxCanvas) && in IsValid()
/external/chromium_org/chrome/browser/favicon/
Dfavicon_handler.cc150 int area = sizes[i].GetArea(); in GetLargestSizeIndex()
151 if ((ret == -1 || sizes[ret].GetArea() < area) && area <= max_area) in GetLargestSizeIndex()
174 area1 = b1.icon_sizes.front().GetArea(); in CompareIconSize()
178 area2 = b2.icon_sizes.front().GetArea(); in CompareIconSize()
271 image.Size().GetArea() > in UpdateFaviconCandidate()
272 best_favicon_candidate_.image.Size().GetArea(); in UpdateFaviconCandidate()
286 image_urls_[1].icon_sizes[0].GetArea() < largest.GetArea(); in UpdateFaviconCandidate()
/external/chromium_org/media/video/capture/win/
Dsink_input_pin_win.cc55 requested_format_.frame_size.GetArea() * 3 / 2; in GetValidMediaType()
64 pvi->bmiHeader.biSizeImage = requested_format_.frame_size.GetArea() * 2; in GetValidMediaType()
73 pvi->bmiHeader.biSizeImage = requested_format_.frame_size.GetArea() * 3; in GetValidMediaType()
/external/chromium_org/content/browser/media/capture/
Dvideo_capture_oracle.cc320 DCHECK_GT(i->damage_rect.size().GetArea(), 0); in ElectMajorityDamageRect()
323 votes = candidate->size().GetArea(); in ElectMajorityDamageRect()
325 votes += i->damage_rect.size().GetArea(); in ElectMajorityDamageRect()
327 votes -= i->damage_rect.size().GetArea(); in ElectMajorityDamageRect()
356 const int area = i->damage_rect.size().GetArea(); in AnalyzeObservations()
Ddesktop_capture_device_unittest.cc188 EXPECT_EQ(format.frame_size.GetArea() * 4, frame_size); in TEST_F()
231 EXPECT_EQ(format.frame_size.GetArea() * 4, frame_size); in TEST_F()
/external/chromium_org/ash/display/
Ddisplay_change_observer_chromeos.cc67 if (size_a_dip.GetArea() == size_b_dip.GetArea()) in operator ()()
69 return (size_a_dip.GetArea() < size_b_dip.GetArea()); in operator ()()
Ddisplay_info.cc176 if (mode.size.GetArea() >= largest_area && in CreateFromSpecWithID()
179 largest_area = mode.size.GetArea(); in CreateFromSpecWithID()
/external/chromium_org/ppapi/tests/
Dtest_browser_font.cc177 memset(image.data(), 0xFF, 4 * kSize.GetArea()); in TestDraw()
192 for (int i = 0; i < kSize.GetArea(); ++i) { in TestDraw()
199 ASSERT_EQ(opaque_pixels, kSize.GetArea()); in TestDraw()
/external/chromium_org/ppapi/cpp/
Dsize.h114 int GetArea() const { in GetArea() function
248 float GetArea() const { in GetArea() function
/external/chromium_org/ppapi/utility/graphics/
Dpaint_aggregator.cc229 int paint_area = rect.size().GetArea(); in ShouldInvalidateScrollRect()
233 paint_area += existing_rect.size().GetArea(); in ShouldInvalidateScrollRect()
235 int scroll_area = update_.scroll_rect.size().GetArea(); in ShouldInvalidateScrollRect()
/external/chromium_org/content/browser/renderer_host/media/
Dvideo_capture_manager.cc43 if (format1.frame_size.GetArea() == format2.frame_size.GetArea()) in IsCaptureFormatSmaller()
45 return format1.frame_size.GetArea() < format2.frame_size.GetArea(); in IsCaptureFormatSmaller()
50 return format1.frame_size.GetArea() == format2.frame_size.GetArea(); in IsCaptureFormatSizeEqual()
/external/chromium_org/chrome/utility/cloud_print/
Dbitmap_image.cc18 data_(new uint8[size.GetArea() * channels()]) { in BitmapImage()
/external/chromium_org/cc/test/
Dtest_shared_bitmap_manager.cc25 memory->CreateAndMapAnonymous(size.GetArea() * 4); in AllocateSharedBitmap()
/external/chromium_org/media/base/
Dvideo_frame.cc118 if (coded_size.GetArea() > limits::kMaxCanvas || in IsValidConfig()
124 natural_size.GetArea() > limits::kMaxCanvas || in IsValidConfig()
228 frame->data_[kUPlane] = data + new_coded_size.GetArea(); in WrapExternalPackedMemory()
229 frame->data_[kVPlane] = data + (new_coded_size.GetArea() * 5 / 4); in WrapExternalPackedMemory()
578 return PlaneSize(format, plane, coded_size).GetArea(); in PlaneAllocationSize()
/external/chromium_org/components/favicon_base/
Dselect_favicon_frames.cc25 int max_area = candidate_sizes[0].GetArea(); in BiggestCandidate()
27 int area = candidate_sizes[i].GetArea(); in BiggestCandidate()
/external/chromium_org/chrome/renderer/
Dchrome_render_frame_observer.cc37 if (image_size.GetArea() < thumbnail_min_area_pixels) in Downscale()
/external/chromium_org/printing/
Demf_win.cc528 if (page_size.GetArea() <= 0) { in RasterizeMetafile()
533 float scale = sqrt(float(raster_area_in_pixels) / page_size.GetArea()); in RasterizeMetafile()
572 if (page_bounds.size().GetArea() <= 0) { in RasterizeAlphaBlend()
/external/chromium_org/mojo/aura/
Dcontext_factory_mojo.cc58 memory->CreateAndMapAnonymous(size.GetArea() * 4); in AllocateSharedBitmap()
/external/chromium_org/pdf/
Dbutton.cc28 DCHECK(face_normal.size().GetArea()); in CreateButton()
/external/chromium_org/native_client_sdk/src/examples/api/var_array_buffer/
Dvar_array_buffer.cc69 for (int i = 0; i < size.GetArea(); ++i) in MakeBlankImageData()

123