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

Side by Side Diff: cc/surfaces/display.h

Issue 2908783002: WIP Hittest Component.
Patch Set: change HitTestFlags to constants so we can mix and match and convert to struct naming convention Created 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SURFACES_DISPLAY_H_ 5 #ifndef CC_SURFACES_DISPLAY_H_
6 #define CC_SURFACES_DISPLAY_H_ 6 #define CC_SURFACES_DISPLAY_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 // SurfaceObserver implementation. 88 // SurfaceObserver implementation.
89 void OnSurfaceDamaged(const SurfaceId& surface, 89 void OnSurfaceDamaged(const SurfaceId& surface,
90 const BeginFrameAck& ack, 90 const BeginFrameAck& ack,
91 bool* changed) override; 91 bool* changed) override;
92 void OnSurfaceCreated(const SurfaceInfo& surface_info) override; 92 void OnSurfaceCreated(const SurfaceInfo& surface_info) override;
93 void OnSurfaceDiscarded(const SurfaceId& surface_id) override; 93 void OnSurfaceDiscarded(const SurfaceId& surface_id) override;
94 void OnSurfaceDestroyed(const SurfaceId& surface_id) override; 94 void OnSurfaceDestroyed(const SurfaceId& surface_id) override;
95 void OnSurfaceDamageExpected(const SurfaceId& surface_id, 95 void OnSurfaceDamageExpected(const SurfaceId& surface_id,
96 const BeginFrameArgs& args) override; 96 const BeginFrameArgs& args) override;
97 void OnSurfaceWillDraw(const SurfaceId& surface_id) override {}
97 98
98 bool has_scheduler() const { return !!scheduler_; } 99 bool has_scheduler() const { return !!scheduler_; }
99 DirectRenderer* renderer_for_testing() const { return renderer_.get(); } 100 DirectRenderer* renderer_for_testing() const { return renderer_.get(); }
100 101
101 void ForceImmediateDrawAndSwapIfPossible(); 102 void ForceImmediateDrawAndSwapIfPossible();
102 103
103 private: 104 private:
104 void InitializeRenderer(); 105 void InitializeRenderer();
105 void UpdateRootSurfaceResourcesLocked(); 106 void UpdateRootSurfaceResourcesLocked();
106 void DidLoseContextProvider(); 107 void DidLoseContextProvider();
(...skipping 26 matching lines...) Expand all
133 SoftwareRenderer* software_renderer_ = nullptr; 134 SoftwareRenderer* software_renderer_ = nullptr;
134 std::vector<ui::LatencyInfo> stored_latency_info_; 135 std::vector<ui::LatencyInfo> stored_latency_info_;
135 136
136 private: 137 private:
137 DISALLOW_COPY_AND_ASSIGN(Display); 138 DISALLOW_COPY_AND_ASSIGN(Display);
138 }; 139 };
139 140
140 } // namespace cc 141 } // namespace cc
141 142
142 #endif // CC_SURFACES_DISPLAY_H_ 143 #endif // CC_SURFACES_DISPLAY_H_
OLDNEW
« no previous file with comments | « no previous file | cc/surfaces/surface_aggregator.cc » ('j') | components/viz/hit_test/public/interfaces/hit_test_data.mojom » ('J')

Powered by Google App Engine
This is Rietveld 408576698