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

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

Issue 394113002: Tiling priorities in Android Webview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 215
216 // Resets all of the trees to an empty state. 216 // Resets all of the trees to an empty state.
217 void ResetTreesForTesting(); 217 void ResetTreesForTesting();
218 218
219 DrawMode GetDrawMode() const; 219 DrawMode GetDrawMode() const;
220 220
221 // Viewport size in draw space: this size is in physical pixels and is used 221 // Viewport size in draw space: this size is in physical pixels and is used
222 // for draw properties, tilings, quads and render passes. 222 // for draw properties, tilings, quads and render passes.
223 gfx::Size DrawViewportSize() const; 223 gfx::Size DrawViewportSize() const;
224 224
225 // Viewport rect in screen space used for tiling prioritization.
226 gfx::Rect ExternalTilingRect() const;
enne (OOO) 2014/07/24 19:25:19 bikeshed: "TilingRect" is a really ambiguous phras
227 const gfx::Transform& ExternalTilingTransform() const;
228
225 // Viewport size for scrolling and fixed-position compensation. This value 229 // Viewport size for scrolling and fixed-position compensation. This value
226 // excludes the URL bar and non-overlay scrollbars and is in DIP (and 230 // excludes the URL bar and non-overlay scrollbars and is in DIP (and
227 // invariant relative to page scale). 231 // invariant relative to page scale).
228 gfx::SizeF UnscaledScrollableViewportSize() const; 232 gfx::SizeF UnscaledScrollableViewportSize() const;
229 float VerticalAdjust() const; 233 float VerticalAdjust() const;
230 234
231 // RendererClient implementation. 235 // RendererClient implementation.
232 virtual void SetFullRootLayerDamage() OVERRIDE; 236 virtual void SetFullRootLayerDamage() OVERRIDE;
233 virtual void RunOnDemandRasterTask(Task* on_demand_raster_task) OVERRIDE; 237 virtual void RunOnDemandRasterTask(Task* on_demand_raster_task) OVERRIDE;
234 238
(...skipping 11 matching lines...) Expand all
246 virtual void DeferredInitialize() OVERRIDE; 250 virtual void DeferredInitialize() OVERRIDE;
247 virtual void ReleaseGL() OVERRIDE; 251 virtual void ReleaseGL() OVERRIDE;
248 virtual void CommitVSyncParameters(base::TimeTicks timebase, 252 virtual void CommitVSyncParameters(base::TimeTicks timebase,
249 base::TimeDelta interval) OVERRIDE; 253 base::TimeDelta interval) OVERRIDE;
250 virtual void SetNeedsRedrawRect(const gfx::Rect& rect) OVERRIDE; 254 virtual void SetNeedsRedrawRect(const gfx::Rect& rect) OVERRIDE;
251 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE; 255 virtual void BeginFrame(const BeginFrameArgs& args) OVERRIDE;
252 virtual void SetExternalDrawConstraints( 256 virtual void SetExternalDrawConstraints(
253 const gfx::Transform& transform, 257 const gfx::Transform& transform,
254 const gfx::Rect& viewport, 258 const gfx::Rect& viewport,
255 const gfx::Rect& clip, 259 const gfx::Rect& clip,
260 const gfx::Rect& external_tiling_rect,
261 const gfx::Transform& external_tiling_transform,
256 bool resourceless_software_draw) OVERRIDE; 262 bool resourceless_software_draw) OVERRIDE;
257 virtual void DidLoseOutputSurface() OVERRIDE; 263 virtual void DidLoseOutputSurface() OVERRIDE;
258 virtual void DidSwapBuffers() OVERRIDE; 264 virtual void DidSwapBuffers() OVERRIDE;
259 virtual void DidSwapBuffersComplete() OVERRIDE; 265 virtual void DidSwapBuffersComplete() OVERRIDE;
260 virtual void ReclaimResources(const CompositorFrameAck* ack) OVERRIDE; 266 virtual void ReclaimResources(const CompositorFrameAck* ack) OVERRIDE;
261 virtual void SetMemoryPolicy(const ManagedMemoryPolicy& policy) OVERRIDE; 267 virtual void SetMemoryPolicy(const ManagedMemoryPolicy& policy) OVERRIDE;
262 virtual void SetTreeActivationCallback(const base::Closure& callback) 268 virtual void SetTreeActivationCallback(const base::Closure& callback)
263 OVERRIDE; 269 OVERRIDE;
264 270
265 // Called from LayerTreeImpl. 271 // Called from LayerTreeImpl.
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 float overdraw_bottom_height_; 665 float overdraw_bottom_height_;
660 666
661 // Optional top-level constraints that can be set by the OutputSurface. 667 // Optional top-level constraints that can be set by the OutputSurface.
662 // - external_transform_ applies a transform above the root layer 668 // - external_transform_ applies a transform above the root layer
663 // - external_viewport_ is used DrawProperties, tile management and 669 // - external_viewport_ is used DrawProperties, tile management and
664 // glViewport/window projection matrix. 670 // glViewport/window projection matrix.
665 // - external_clip_ specifies a top-level clip rect 671 // - external_clip_ specifies a top-level clip rect
666 gfx::Transform external_transform_; 672 gfx::Transform external_transform_;
667 gfx::Rect external_viewport_; 673 gfx::Rect external_viewport_;
668 gfx::Rect external_clip_; 674 gfx::Rect external_clip_;
675 gfx::Rect external_tiling_rect_;
676 gfx::Transform external_tiling_transform_;
669 bool resourceless_software_draw_; 677 bool resourceless_software_draw_;
670 678
671 gfx::Rect viewport_damage_rect_; 679 gfx::Rect viewport_damage_rect_;
672 680
673 base::TimeTicks current_frame_timeticks_; 681 base::TimeTicks current_frame_timeticks_;
674 682
675 // Expected time between two begin impl frame calls. 683 // Expected time between two begin impl frame calls.
676 base::TimeDelta begin_impl_frame_interval_; 684 base::TimeDelta begin_impl_frame_interval_;
677 685
678 scoped_ptr<AnimationRegistrar> animation_registrar_; 686 scoped_ptr<AnimationRegistrar> animation_registrar_;
(...skipping 17 matching lines...) Expand all
696 size_t transfer_buffer_memory_limit_; 704 size_t transfer_buffer_memory_limit_;
697 705
698 std::vector<PictureLayerImpl*> picture_layers_; 706 std::vector<PictureLayerImpl*> picture_layers_;
699 707
700 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 708 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
701 }; 709 };
702 710
703 } // namespace cc 711 } // namespace cc
704 712
705 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 713 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698