OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 UI_AURA_LOCAL_COMPOSITOR_FRAME_SINK_LOCAL_H_ | 5 #ifndef UI_AURA_LOCAL_COMPOSITOR_FRAME_SINK_LOCAL_H_ |
6 #define UI_AURA_LOCAL_COMPOSITOR_FRAME_SINK_LOCAL_H_ | 6 #define UI_AURA_LOCAL_COMPOSITOR_FRAME_SINK_LOCAL_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "cc/output/compositor_frame_sink.h" | 10 #include "cc/output/compositor_frame_sink.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 const gfx::Rect& damage_rect) override {} | 53 const gfx::Rect& damage_rect) override {} |
54 | 54 |
55 // cc::ExternalBeginFrameSourceClient: | 55 // cc::ExternalBeginFrameSourceClient: |
56 void OnNeedsBeginFrames(bool needs_begin_frames) override; | 56 void OnNeedsBeginFrames(bool needs_begin_frames) override; |
57 void OnDidFinishFrame(const cc::BeginFrameAck& ack) override; | 57 void OnDidFinishFrame(const cc::BeginFrameAck& ack) override; |
58 | 58 |
59 private: | 59 private: |
60 const cc::FrameSinkId frame_sink_id_; | 60 const cc::FrameSinkId frame_sink_id_; |
61 cc::SurfaceManager* const surface_manager_; | 61 cc::SurfaceManager* const surface_manager_; |
62 std::unique_ptr<cc::CompositorFrameSinkSupport> support_; | 62 std::unique_ptr<cc::CompositorFrameSinkSupport> support_; |
63 gfx::Size last_submitted_frame_size_; | 63 gfx::Size surface_size_; |
| 64 float device_scale_factor_ = 0; |
64 cc::LocalSurfaceIdAllocator id_allocator_; | 65 cc::LocalSurfaceIdAllocator id_allocator_; |
65 cc::LocalSurfaceId local_surface_id_; | 66 cc::LocalSurfaceId local_surface_id_; |
66 std::unique_ptr<cc::ExternalBeginFrameSource> begin_frame_source_; | 67 std::unique_ptr<cc::ExternalBeginFrameSource> begin_frame_source_; |
67 std::unique_ptr<base::ThreadChecker> thread_checker_; | 68 std::unique_ptr<base::ThreadChecker> thread_checker_; |
68 SurfaceChangedCallback surface_changed_callback_; | 69 SurfaceChangedCallback surface_changed_callback_; |
69 | 70 |
70 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkLocal); | 71 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSinkLocal); |
71 }; | 72 }; |
72 | 73 |
73 } // namespace aura | 74 } // namespace aura |
74 | 75 |
75 #endif // UI_AURA_LOCAL_COMPOSITOR_FRAME_SINK_LOCAL_H_ | 76 #endif // UI_AURA_LOCAL_COMPOSITOR_FRAME_SINK_LOCAL_H_ |
OLD | NEW |