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

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

Issue 2042573002: cc : Fix hit testing bug in resourceless software draw mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 203
204 // TopControlsManagerClient implementation. 204 // TopControlsManagerClient implementation.
205 float TopControlsHeight() const override; 205 float TopControlsHeight() const override;
206 void SetCurrentTopControlsShownRatio(float offset) override; 206 void SetCurrentTopControlsShownRatio(float offset) override;
207 float CurrentTopControlsShownRatio() const override; 207 float CurrentTopControlsShownRatio() const override;
208 void DidChangeTopControlsPosition() override; 208 void DidChangeTopControlsPosition() override;
209 bool HaveRootScrollLayer() const override; 209 bool HaveRootScrollLayer() const override;
210 210
211 void UpdateViewportContainerSizes(); 211 void UpdateViewportContainerSizes();
212 212
213 void set_resourceless_software_draw_for_testing() {
214 resourceless_software_draw_ = true;
215 }
216
213 struct CC_EXPORT FrameData : public RenderPassSink { 217 struct CC_EXPORT FrameData : public RenderPassSink {
214 FrameData(); 218 FrameData();
215 ~FrameData() override; 219 ~FrameData() override;
216 void AsValueInto(base::trace_event::TracedValue* value) const; 220 void AsValueInto(base::trace_event::TracedValue* value) const;
217 221
218 std::vector<gfx::Rect> occluding_screen_space_rects; 222 std::vector<gfx::Rect> occluding_screen_space_rects;
219 std::vector<gfx::Rect> non_occluding_screen_space_rects; 223 std::vector<gfx::Rect> non_occluding_screen_space_rects;
220 RenderPassList render_passes; 224 RenderPassList render_passes;
221 const LayerImplList* render_surface_layer_list; 225 const LayerImplList* render_surface_layer_list;
222 LayerImplList will_draw_layers; 226 LayerImplList will_draw_layers;
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 bool has_fixed_raster_scale_blurry_content_; 856 bool has_fixed_raster_scale_blurry_content_;
853 std::bitset<kFixedRasterScaleAttemptedScaleChangeHistoryCount> 857 std::bitset<kFixedRasterScaleAttemptedScaleChangeHistoryCount>
854 fixed_raster_scale_attempted_scale_change_history_; 858 fixed_raster_scale_attempted_scale_change_history_;
855 859
856 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 860 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
857 }; 861 };
858 862
859 } // namespace cc 863 } // namespace cc
860 864
861 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 865 #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