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

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

Issue 2465093002: cc: Add OutputSurface state snapshots.
Patch Set: nits Created 4 years, 1 month 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 SetNeedsRedrawRect(const gfx::Rect& damage_rect) override; 86 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override;
87 void DidReceiveSwapBuffersAck() override; 87 void DidReceiveSwapBuffersAck() override;
88 void DidReceiveTextureInUseResponses( 88 void DidReceiveTextureInUseResponses(
89 const gpu::TextureInUseResponses& responses) override; 89 const gpu::TextureInUseResponses& responses) override;
90 void ReadbackSwappedOverlayTextures(
91 std::vector<SkBitmap>* bitmaps,
92 const base::Callback<void(bool)>& callback) override;
90 93
91 // SurfaceObserver implementation. 94 // SurfaceObserver implementation.
92 void OnSurfaceDamaged(const SurfaceId& surface, bool* changed) override; 95 void OnSurfaceDamaged(const SurfaceId& surface, bool* changed) override;
93 void OnSurfaceCreated(const SurfaceId& surface_id, 96 void OnSurfaceCreated(const SurfaceId& surface_id,
94 const gfx::Size& frame, 97 const gfx::Size& frame,
95 float device_scale_factor) override; 98 float device_scale_factor) override;
96 99
97 bool has_scheduler() const { return !!scheduler_; } 100 bool has_scheduler() const { return !!scheduler_; }
98 DirectRenderer* renderer_for_testing() const { return renderer_.get(); } 101 DirectRenderer* renderer_for_testing() const { return renderer_.get(); }
99 102
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 SoftwareRenderer* software_renderer_ = nullptr; 134 SoftwareRenderer* software_renderer_ = nullptr;
132 std::vector<ui::LatencyInfo> stored_latency_info_; 135 std::vector<ui::LatencyInfo> stored_latency_info_;
133 136
134 private: 137 private:
135 DISALLOW_COPY_AND_ASSIGN(Display); 138 DISALLOW_COPY_AND_ASSIGN(Display);
136 }; 139 };
137 140
138 } // namespace cc 141 } // namespace cc
139 142
140 #endif // CC_SURFACES_DISPLAY_H_ 143 #endif // CC_SURFACES_DISPLAY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698