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

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

Issue 2465093002: cc: Add OutputSurface state snapshots.
Patch Set: rebase Created 3 years, 11 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/output_surface_client.h ('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 const SurfaceId& CurrentSurfaceId(); 76 const SurfaceId& CurrentSurfaceId();
77 77
78 // DisplaySchedulerClient implementation. 78 // DisplaySchedulerClient implementation.
79 bool DrawAndSwap() override; 79 bool DrawAndSwap() override;
80 80
81 // OutputSurfaceClient implementation. 81 // OutputSurfaceClient implementation.
82 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override; 82 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override;
83 void DidReceiveSwapBuffersAck() override; 83 void DidReceiveSwapBuffersAck() override;
84 void DidReceiveTextureInUseResponses( 84 void DidReceiveTextureInUseResponses(
85 const gpu::TextureInUseResponses& responses) override; 85 const gpu::TextureInUseResponses& responses) override;
86 void ReadbackSwappedOverlayTextures(
87 std::vector<SkBitmap>* bitmaps,
88 const base::Callback<void(bool)>& callback) override;
86 89
87 // SurfaceObserver implementation. 90 // SurfaceObserver implementation.
88 void OnSurfaceDamaged(const SurfaceId& surface, bool* changed) override; 91 void OnSurfaceDamaged(const SurfaceId& surface, bool* changed) override;
89 void OnSurfaceCreated(const SurfaceInfo& surface_info) override; 92 void OnSurfaceCreated(const SurfaceInfo& surface_info) override;
90 93
91 bool has_scheduler() const { return !!scheduler_; } 94 bool has_scheduler() const { return !!scheduler_; }
92 DirectRenderer* renderer_for_testing() const { return renderer_.get(); } 95 DirectRenderer* renderer_for_testing() const { return renderer_.get(); }
93 96
94 void ForceImmediateDrawAndSwapIfPossible(); 97 void ForceImmediateDrawAndSwapIfPossible();
95 98
(...skipping 29 matching lines...) Expand all
125 SoftwareRenderer* software_renderer_ = nullptr; 128 SoftwareRenderer* software_renderer_ = nullptr;
126 std::vector<ui::LatencyInfo> stored_latency_info_; 129 std::vector<ui::LatencyInfo> stored_latency_info_;
127 130
128 private: 131 private:
129 DISALLOW_COPY_AND_ASSIGN(Display); 132 DISALLOW_COPY_AND_ASSIGN(Display);
130 }; 133 };
131 134
132 } // namespace cc 135 } // namespace cc
133 136
134 #endif // CC_SURFACES_DISPLAY_H_ 137 #endif // CC_SURFACES_DISPLAY_H_
OLDNEW
« no previous file with comments | « cc/output/output_surface_client.h ('k') | cc/surfaces/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698