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

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

Issue 2033163003: cc : Fix hit testing bug in resourceless software draw mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « cc/trees/layer_tree_host_common_unittest.cc ('k') | cc/trees/layer_tree_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 205
206 // TopControlsManagerClient implementation. 206 // TopControlsManagerClient implementation.
207 float TopControlsHeight() const override; 207 float TopControlsHeight() const override;
208 void SetCurrentTopControlsShownRatio(float offset) override; 208 void SetCurrentTopControlsShownRatio(float offset) override;
209 float CurrentTopControlsShownRatio() const override; 209 float CurrentTopControlsShownRatio() const override;
210 void DidChangeTopControlsPosition() override; 210 void DidChangeTopControlsPosition() override;
211 bool HaveRootScrollLayer() const override; 211 bool HaveRootScrollLayer() const override;
212 212
213 void UpdateViewportContainerSizes(); 213 void UpdateViewportContainerSizes();
214 214
215 void set_resourceless_software_draw_for_testing() {
216 resourceless_software_draw_ = true;
217 }
218
215 struct CC_EXPORT FrameData : public RenderPassSink { 219 struct CC_EXPORT FrameData : public RenderPassSink {
216 FrameData(); 220 FrameData();
217 ~FrameData() override; 221 ~FrameData() override;
218 void AsValueInto(base::trace_event::TracedValue* value) const; 222 void AsValueInto(base::trace_event::TracedValue* value) const;
219 223
220 std::vector<gfx::Rect> occluding_screen_space_rects; 224 std::vector<gfx::Rect> occluding_screen_space_rects;
221 std::vector<gfx::Rect> non_occluding_screen_space_rects; 225 std::vector<gfx::Rect> non_occluding_screen_space_rects;
222 RenderPassList render_passes; 226 RenderPassList render_passes;
223 const LayerImplList* render_surface_layer_list; 227 const LayerImplList* render_surface_layer_list;
224 LayerImplList will_draw_layers; 228 LayerImplList will_draw_layers;
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 fixed_raster_scale_attempted_scale_change_history_; 864 fixed_raster_scale_attempted_scale_change_history_;
861 std::unique_ptr<PendingTreeDurationHistogramTimer> 865 std::unique_ptr<PendingTreeDurationHistogramTimer>
862 pending_tree_duration_timer_; 866 pending_tree_duration_timer_;
863 867
864 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 868 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
865 }; 869 };
866 870
867 } // namespace cc 871 } // namespace cc
868 872
869 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 873 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_common_unittest.cc ('k') | cc/trees/layer_tree_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698