Home
last modified time | relevance | path

Searched refs:viewport_size (Results 1 – 25 of 51) sorted by relevance

123

/external/chromium_org/cc/input/
Dpage_scale_animation.cc20 const gfx::SizeF& viewport_size) { in NormalizeFromViewport() argument
22 1.f / viewport_size.width(), in NormalizeFromViewport()
23 1.f / viewport_size.height()); in NormalizeFromViewport()
27 const gfx::SizeF& viewport_size) { in DenormalizeToViewport() argument
29 viewport_size.width(), in DenormalizeToViewport()
30 viewport_size.height()); in DenormalizeToViewport()
49 const gfx::SizeF& viewport_size, in Create() argument
54 viewport_size, in Create()
62 const gfx::SizeF& viewport_size, in PageScaleAnimation() argument
70 viewport_size_(viewport_size), in PageScaleAnimation()
Dpage_scale_animation.h33 const gfx::SizeF& viewport_size,
77 const gfx::SizeF& viewport_size,
/external/chromium_org/cc/layers/
Dvideo_layer_impl_unittest.cc22 gfx::Size viewport_size(1000, 1000); in TEST() local
42 impl.CalcDrawProps(viewport_size); in TEST()
96 gfx::Size viewport_size(1000, 500); in TEST() local
116 impl.CalcDrawProps(viewport_size); in TEST()
132 gfx::Size viewport_size(1000, 500); in TEST() local
152 impl.CalcDrawProps(viewport_size); in TEST()
168 gfx::Size viewport_size(1000, 500); in TEST() local
188 impl.CalcDrawProps(viewport_size); in TEST()
204 gfx::Size viewport_size(1000, 500); in TEST() local
224 impl.CalcDrawProps(viewport_size); in TEST()
Dsurface_layer_impl_unittest.cc15 gfx::Size viewport_size(1000, 1000); in TEST() local
27 impl.CalcDrawProps(viewport_size); in TEST()
Dio_surface_layer_impl_unittest.cc15 gfx::Size viewport_size(1000, 1000); in TEST() local
25 impl.CalcDrawProps(viewport_size); in TEST()
Drender_surface_impl_unittest.cc15 gfx::Size viewport_size(1000, 1000); in TEST() local
25 impl.CalcDrawProps(viewport_size); in TEST()
Dtexture_layer_impl_unittest.cc22 gfx::Size viewport_size(1000, 1000); in TEST() local
40 impl.CalcDrawProps(viewport_size); in TEST()
Dpicture_layer_impl_perftest.cc74 const gfx::Size& viewport_size) { in RunRasterIteratorConstructAndIterateTest() argument
75 host_impl_.SetViewportSize(viewport_size); in RunRasterIteratorConstructAndIterateTest()
121 const gfx::Size& viewport_size) { in RunEvictionIteratorConstructAndIterateTest() argument
122 host_impl_.SetViewportSize(viewport_size); in RunEvictionIteratorConstructAndIterateTest()
Dsolid_color_scrollbar_layer_impl_unittest.cc15 gfx::Size viewport_size(1000, 1000); in TEST() local
41 impl.CalcDrawProps(viewport_size); in TEST()
Dpainted_scrollbar_layer_impl_unittest.cc15 gfx::Size viewport_size(1000, 1000); in TEST() local
49 impl.CalcDrawProps(viewport_size); in TEST()
/external/chromium_org/ui/views/controls/scrollbar/
Dnative_scroll_bar.cc91 void NativeScrollBar::Update(int viewport_size, in Update() argument
94 ScrollBar::Update(viewport_size, content_size, current_pos); in Update()
97 native_wrapper_->Update(viewport_size, content_size, current_pos); in Update()
Dscroll_bar.cc22 void ScrollBar::Update(int viewport_size, int content_size, int current_pos) { in Update() argument
23 max_pos_ = std::max(0, content_size - viewport_size); in Update()
Dbase_scroll_bar.cc394 void BaseScrollBar::Update(int viewport_size, in Update() argument
397 ScrollBar::Update(viewport_size, content_size, contents_scroll_offset); in Update()
403 viewport_size_ = std::max(1, viewport_size); in Update()
416 double ratio = static_cast<double>(viewport_size) / contents_size_; in Update()
Dnative_scroll_bar_wrapper.h27 virtual void Update(int viewport_size, int content_size, int current_pos) = 0;
/external/chromium_org/ui/ozone/platform/dri/
Ddri_surface.cc50 void DriSurface::ResizeCanvas(const gfx::Size& viewport_size) { in ResizeCanvas() argument
52 viewport_size.width(), viewport_size.height(), kOpaque_SkAlphaType); in ResizeCanvas()
Dgbm_surface.cc125 bool GbmSurface::ResizeNativeWindow(const gfx::Size& viewport_size) { in ResizeNativeWindow() argument
126 if (size_ == viewport_size) in ResizeNativeWindow()
Dgbm_surfaceless.cc25 bool GbmSurfaceless::ResizeNativeWindow(const gfx::Size& viewport_size) { in ResizeNativeWindow() argument
/external/chromium_org/ui/ozone/platform/test/
Dtest_window_manager.cc38 virtual void ResizeCanvas(const gfx::Size& viewport_size) OVERRIDE { in ResizeCanvas() argument
40 viewport_size.width(), viewport_size.height()))); in ResizeCanvas()
/external/chromium_org/ui/compositor/
Dlayer_unittest.cc862 gfx::Size viewport_size = GetCompositor()->size(); in TEST_F() local
866 EXPECT_GE(viewport_size.width(), 200); in TEST_F()
867 EXPECT_GE(viewport_size.height(), 200); in TEST_F()
872 CreateColorLayer(SK_ColorRED, gfx::Rect(viewport_size))); in TEST_F()
875 gfx::Rect(0, 0, viewport_size.width(), blue_height))); in TEST_F()
882 ReadPixels(&bitmap, gfx::Rect(viewport_size)); in TEST_F()
886 for (int x = 0; x < viewport_size.width(); x++) { in TEST_F()
887 for (int y = 0; y < viewport_size.height(); y++) { in TEST_F()
898 gfx::Size viewport_size = GetCompositor()->size(); in TEST_F() local
901 EXPECT_GE(viewport_size.width(), test_size); in TEST_F()
[all …]
/external/chromium_org/mojo/examples/compositor_app/
Dcompositor_host.cc37 void CompositorHost::SetSize(const gfx::Size& viewport_size) { in SetSize() argument
38 tree_->SetViewportSize(viewport_size); in SetSize()
/external/chromium_org/content/renderer/
Ddisambiguation_popup_helper.cc65 const gfx::Size& viewport_size, in CropZoomArea() argument
68 gfx::Size max_size = viewport_size; in CropZoomArea()
/external/chromium_org/ui/ozone/platform/caca/
Dcaca_window_manager.cc30 virtual void ResizeCanvas(const gfx::Size& viewport_size) OVERRIDE;
59 void CacaSurface::ResizeCanvas(const gfx::Size& viewport_size) { in ResizeCanvas() argument
/external/chromium_org/ui/views/controls/
Dscroll_view.cc56 int CheckScrollBounds(int viewport_size, int content_size, int current_pos) { in CheckScrollBounds() argument
57 int max = std::max(content_size - viewport_size, 0); in CheckScrollBounds()
82 int viewport_size) { in AdjustPosition() argument
87 const int max_position = std::max(0, content_size - viewport_size); in AdjustPosition()
262 gfx::Size viewport_size = viewport_bounds.size(); in Layout() local
281 ComputeScrollBarsVisibility(viewport_size, in Layout()
/external/chromium_org/ui/ozone/public/
Dsurface_ozone_egl.h35 virtual bool ResizeNativeWindow(const gfx::Size& viewport_size) = 0;
Dsurface_ozone_canvas.h36 virtual void ResizeCanvas(const gfx::Size& viewport_size) = 0;

123