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

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

Issue 2403373002: cc: Clean up OutputSurfaceClient. (Closed)
Patch Set: osclient: rebase Created 4 years, 2 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/output/overlay_unittest.cc ('k') | cc/surfaces/display.cc » ('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 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 void Resize(const gfx::Size& new_size); 76 void Resize(const gfx::Size& new_size);
77 void SetColorSpace(const gfx::ColorSpace& color_space); 77 void SetColorSpace(const gfx::ColorSpace& color_space);
78 void SetOutputIsSecure(bool secure); 78 void SetOutputIsSecure(bool secure);
79 79
80 const SurfaceId& CurrentSurfaceId(); 80 const SurfaceId& CurrentSurfaceId();
81 81
82 // DisplaySchedulerClient implementation. 82 // DisplaySchedulerClient implementation.
83 bool DrawAndSwap() override; 83 bool DrawAndSwap() override;
84 84
85 // OutputSurfaceClient implementation. 85 // OutputSurfaceClient implementation.
86 void SetBeginFrameSource(BeginFrameSource* source) override;
87 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override; 86 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override;
88 void DidSwapBuffersComplete() override; 87 void DidReceiveSwapBuffersAck() override;
89 void DidReceiveTextureInUseResponses( 88 void DidReceiveTextureInUseResponses(
90 const gpu::TextureInUseResponses& responses) override; 89 const gpu::TextureInUseResponses& responses) override;
91 void ReclaimResources(const ReturnedResourceArray& resources) override;
92 void DidLoseOutputSurface() override; 90 void DidLoseOutputSurface() override;
93 void SetExternalTilePriorityConstraints(
94 const gfx::Rect& viewport_rect,
95 const gfx::Transform& transform) override;
96 void SetMemoryPolicy(const ManagedMemoryPolicy& policy) override;
97 void SetTreeActivationCallback(const base::Closure& callback) override;
98 void OnDraw(const gfx::Transform& transform,
99 const gfx::Rect& viewport,
100 bool resourceless_software_draw) override;
101 91
102 // SurfaceObserver implementation. 92 // SurfaceObserver implementation.
103 void OnSurfaceDamaged(const SurfaceId& surface, bool* changed) override; 93 void OnSurfaceDamaged(const SurfaceId& surface, bool* changed) override;
104 void OnSurfaceCreated(const SurfaceId& surface_id, 94 void OnSurfaceCreated(const SurfaceId& surface_id,
105 const gfx::Size& frame, 95 const gfx::Size& frame,
106 float device_scale_factor) override; 96 float device_scale_factor) override;
107 97
108 bool has_scheduler() const { return !!scheduler_; } 98 bool has_scheduler() const { return !!scheduler_; }
109 DirectRenderer* renderer_for_testing() const { return renderer_.get(); } 99 DirectRenderer* renderer_for_testing() const { return renderer_.get(); }
110 100
(...skipping 30 matching lines...) Expand all
141 SoftwareRenderer* software_renderer_ = nullptr; 131 SoftwareRenderer* software_renderer_ = nullptr;
142 std::vector<ui::LatencyInfo> stored_latency_info_; 132 std::vector<ui::LatencyInfo> stored_latency_info_;
143 133
144 private: 134 private:
145 DISALLOW_COPY_AND_ASSIGN(Display); 135 DISALLOW_COPY_AND_ASSIGN(Display);
146 }; 136 };
147 137
148 } // namespace cc 138 } // namespace cc
149 139
150 #endif // CC_SURFACES_DISPLAY_H_ 140 #endif // CC_SURFACES_DISPLAY_H_
OLDNEW
« no previous file with comments | « cc/output/overlay_unittest.cc ('k') | cc/surfaces/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698