Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Side by Side Diff: cc/trees/layer_tree_host_impl.h

Issue 2099903002: Make tile size a function of the device scale factor. Base URL: https://chromium.googlesource.com/chromium/src.git@layouttests-display
Patch Set: tilesize: . Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <bitset> 10 #include <bitset>
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 void UnregisterScrollbarAnimationController(int scroll_layer_id); 322 void UnregisterScrollbarAnimationController(int scroll_layer_id);
323 ScrollbarAnimationController* ScrollbarAnimationControllerForId( 323 ScrollbarAnimationController* ScrollbarAnimationControllerForId(
324 int scroll_layer_id) const; 324 int scroll_layer_id) const;
325 325
326 DrawMode GetDrawMode() const; 326 DrawMode GetDrawMode() const;
327 327
328 // Viewport size in draw space: this size is in physical pixels and is used 328 // Viewport size in draw space: this size is in physical pixels and is used
329 // for draw properties, tilings, quads and render passes. 329 // for draw properties, tilings, quads and render passes.
330 gfx::Size DrawViewportSize() const; 330 gfx::Size DrawViewportSize() const;
331 331
332 // A screen size for the physical device that is independent from the size of
333 // the compositor (aka the viewport). It is specific to a single tree.
334 gfx::Size GetStableScreenSize(const LayerTreeImpl* tree) const;
335
332 // Viewport rect in view space used for tiling prioritization. 336 // Viewport rect in view space used for tiling prioritization.
333 const gfx::Rect ViewportRectForTilePriority() const; 337 gfx::Rect ViewportRectForTilePriority() const;
334 338
335 // RendererClient implementation. 339 // RendererClient implementation.
336 void SetFullRootLayerDamage() override; 340 void SetFullRootLayerDamage() override;
337 341
338 // TileManagerClient implementation. 342 // TileManagerClient implementation.
339 void NotifyReadyToActivate() override; 343 void NotifyReadyToActivate() override;
340 void NotifyReadyToDraw() override; 344 void NotifyReadyToDraw() override;
341 void NotifyAllTileTasksCompleted() override; 345 void NotifyAllTileTasksCompleted() override;
342 void NotifyTileStateChanged(const Tile* tile) override; 346 void NotifyTileStateChanged(const Tile* tile) override;
343 std::unique_ptr<RasterTilePriorityQueue> BuildRasterQueue( 347 std::unique_ptr<RasterTilePriorityQueue> BuildRasterQueue(
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 854
851 std::unique_ptr<PendingTreeDurationHistogramTimer> 855 std::unique_ptr<PendingTreeDurationHistogramTimer>
852 pending_tree_duration_timer_; 856 pending_tree_duration_timer_;
853 857
854 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 858 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
855 }; 859 };
856 860
857 } // namespace cc 861 } // namespace cc
858 862
859 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 863 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698