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

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

Issue 2610723002: Unify SurfaceInfo (Closed)
Patch Set: Cleanup offscreen canvas 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/ipc/typemaps.gni ('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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 86
87 // SurfaceObserver implementation. 87 // SurfaceObserver implementation.
88 void OnSurfaceDamaged(const SurfaceId& surface, bool* changed) override; 88 void OnSurfaceDamaged(const SurfaceId& surface, bool* changed) override;
89 void OnSurfaceCreated(const SurfaceId& surface_id, 89 void OnSurfaceCreated(const SurfaceInfo& surface_info) override;
90 const gfx::Size& frame,
91 float device_scale_factor) override;
92 90
93 bool has_scheduler() const { return !!scheduler_; } 91 bool has_scheduler() const { return !!scheduler_; }
94 DirectRenderer* renderer_for_testing() const { return renderer_.get(); } 92 DirectRenderer* renderer_for_testing() const { return renderer_.get(); }
95 93
96 void ForceImmediateDrawAndSwapIfPossible(); 94 void ForceImmediateDrawAndSwapIfPossible();
97 95
98 private: 96 private:
99 void InitializeRenderer(); 97 void InitializeRenderer();
100 void UpdateRootSurfaceResourcesLocked(); 98 void UpdateRootSurfaceResourcesLocked();
101 void DidLoseContextProvider(); 99 void DidLoseContextProvider();
(...skipping 25 matching lines...) Expand all
127 SoftwareRenderer* software_renderer_ = nullptr; 125 SoftwareRenderer* software_renderer_ = nullptr;
128 std::vector<ui::LatencyInfo> stored_latency_info_; 126 std::vector<ui::LatencyInfo> stored_latency_info_;
129 127
130 private: 128 private:
131 DISALLOW_COPY_AND_ASSIGN(Display); 129 DISALLOW_COPY_AND_ASSIGN(Display);
132 }; 130 };
133 131
134 } // namespace cc 132 } // namespace cc
135 133
136 #endif // CC_SURFACES_DISPLAY_H_ 134 #endif // CC_SURFACES_DISPLAY_H_
OLDNEW
« no previous file with comments | « cc/ipc/typemaps.gni ('k') | cc/surfaces/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698