OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_MUS_SURFACES_DISPLAY_IMPL_H_ | 5 #ifndef COMPONENTS_MUS_SURFACES_DISPLAY_IMPL_H_ |
6 #define COMPONENTS_MUS_SURFACES_DISPLAY_IMPL_H_ | 6 #define COMPONENTS_MUS_SURFACES_DISPLAY_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 void CommitVSyncParameters(base::TimeTicks timebase, | 53 void CommitVSyncParameters(base::TimeTicks timebase, |
54 base::TimeDelta interval) override; | 54 base::TimeDelta interval) override; |
55 void OutputSurfaceLost() override; | 55 void OutputSurfaceLost() override; |
56 void SetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override; | 56 void SetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override; |
57 | 57 |
58 // SurfacesContextProviderDelegate: | 58 // SurfacesContextProviderDelegate: |
59 void OnVSyncParametersUpdated(int64_t timebase, int64_t interval) override; | 59 void OnVSyncParametersUpdated(int64_t timebase, int64_t interval) override; |
60 | 60 |
61 // SurfaceFactoryClient implementation. | 61 // SurfaceFactoryClient implementation. |
62 void ReturnResources(const cc::ReturnedResourceArray& resources) override; | 62 void ReturnResources(const cc::ReturnedResourceArray& resources) override; |
63 void SetBeginFrameSource(cc::SurfaceId surface_id, | 63 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; |
64 cc::BeginFrameSource* begin_frame_source) override; | |
65 | 64 |
66 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 65 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
67 scoped_refptr<SurfacesState> surfaces_state_; | 66 scoped_refptr<SurfacesState> surfaces_state_; |
68 cc::SurfaceFactory factory_; | 67 cc::SurfaceFactory factory_; |
69 cc::SurfaceId cc_id_; | 68 cc::SurfaceId cc_id_; |
70 | 69 |
71 gfx::Size last_submitted_frame_size_; | 70 gfx::Size last_submitted_frame_size_; |
72 scoped_ptr<cc::CompositorFrame> pending_frame_; | 71 scoped_ptr<cc::CompositorFrame> pending_frame_; |
73 | 72 |
74 scoped_ptr<cc::SyntheticBeginFrameSource> synthetic_frame_source_; | 73 scoped_ptr<cc::SyntheticBeginFrameSource> synthetic_frame_source_; |
75 scoped_ptr<cc::DisplayScheduler> scheduler_; | 74 scoped_ptr<cc::DisplayScheduler> scheduler_; |
76 scoped_ptr<cc::Display> display_; | 75 scoped_ptr<cc::Display> display_; |
77 | 76 |
78 DISALLOW_COPY_AND_ASSIGN(TopLevelDisplayClient); | 77 DISALLOW_COPY_AND_ASSIGN(TopLevelDisplayClient); |
79 }; | 78 }; |
80 | 79 |
81 } // namespace mus | 80 } // namespace mus |
82 | 81 |
83 #endif // COMPONENTS_MUS_SURFACES_DISPLAY_IMPL_H_ | 82 #endif // COMPONENTS_MUS_SURFACES_DISPLAY_IMPL_H_ |
OLD | NEW |