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

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

Issue 2757953002: DisplayCompositor should enforce invariant that frame size and device scale factor are fixed (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | cc/surfaces/compositor_frame_sink_support.cc » ('j') | cc/surfaces/surface.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_COMPOSITOR_FRAME_SINK_SUPPORT_H_ 5 #ifndef CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_
6 #define CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ 6 #define CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <unordered_set> 9 #include <unordered_set>
10 #include <vector> 10 #include <vector>
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 // SurfaceFactoryClient implementation. 72 // SurfaceFactoryClient implementation.
73 void ReferencedSurfacesChanged( 73 void ReferencedSurfacesChanged(
74 const LocalSurfaceId& local_surface_id, 74 const LocalSurfaceId& local_surface_id,
75 const std::vector<SurfaceId>* active_referenced_surfaces, 75 const std::vector<SurfaceId>* active_referenced_surfaces,
76 const std::vector<SurfaceId>* pending_referenced_surfaces) override; 76 const std::vector<SurfaceId>* pending_referenced_surfaces) override;
77 void ReturnResources(const ReturnedResourceArray& resources) override; 77 void ReturnResources(const ReturnedResourceArray& resources) override;
78 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override; 78 void SetBeginFrameSource(BeginFrameSource* begin_frame_source) override;
79 void WillDrawSurface(const LocalSurfaceId& local_surface_id, 79 void WillDrawSurface(const LocalSurfaceId& local_surface_id,
80 const gfx::Rect& damage_rect) override; 80 const gfx::Rect& damage_rect) override;
81 void OnBadFrameReceived() override;
81 82
82 // BeginFrameObserver implementation. 83 // BeginFrameObserver implementation.
83 void OnBeginFrame(const BeginFrameArgs& args) override; 84 void OnBeginFrame(const BeginFrameArgs& args) override;
84 const BeginFrameArgs& LastUsedBeginFrameArgs() const override; 85 const BeginFrameArgs& LastUsedBeginFrameArgs() const override;
85 void OnBeginFrameSourcePausedChanged(bool paused) override; 86 void OnBeginFrameSourcePausedChanged(bool paused) override;
86 87
87 void UpdateNeedsBeginFramesInternal(); 88 void UpdateNeedsBeginFramesInternal();
88 89
89 CompositorFrameSinkSupportClient* const client_; 90 CompositorFrameSinkSupportClient* const client_;
90 91
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 const bool handles_frame_sink_id_invalidation_; 130 const bool handles_frame_sink_id_invalidation_;
130 131
131 base::WeakPtrFactory<CompositorFrameSinkSupport> weak_factory_; 132 base::WeakPtrFactory<CompositorFrameSinkSupport> weak_factory_;
132 133
133 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkSupport); 134 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkSupport);
134 }; 135 };
135 136
136 } // namespace cc 137 } // namespace cc
137 138
138 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_ 139 #endif // CC_SURFACES_COMPOSITOR_FRAME_SINK_SUPPORT_H_
OLDNEW
« no previous file with comments | « no previous file | cc/surfaces/compositor_frame_sink_support.cc » ('j') | cc/surfaces/surface.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698