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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 void RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> output_request); | 52 void RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> output_request); |
53 | 53 |
54 private: | 54 private: |
55 // DisplayClient implementation. | 55 // DisplayClient implementation. |
56 // TODO(rjkroege, fsamuel): This won't work correctly with multiple displays. | 56 // TODO(rjkroege, fsamuel): This won't work correctly with multiple displays. |
57 void CommitVSyncParameters(base::TimeTicks timebase, | 57 void CommitVSyncParameters(base::TimeTicks timebase, |
58 base::TimeDelta interval) override; | 58 base::TimeDelta interval) override; |
59 void OutputSurfaceLost() override; | 59 void OutputSurfaceLost() override; |
60 void SetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override; | 60 void SetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override; |
| 61 cc::BeginFrameSource* BeginFrameSourceForChildren() override; |
61 | 62 |
62 // SurfacesContextProviderDelegate: | 63 // SurfacesContextProviderDelegate: |
63 void OnVSyncParametersUpdated(int64_t timebase, int64_t interval) override; | 64 void OnVSyncParametersUpdated(int64_t timebase, int64_t interval) override; |
64 | 65 |
65 // SurfaceFactoryClient implementation. | 66 // SurfaceFactoryClient implementation. |
66 void ReturnResources(const cc::ReturnedResourceArray& resources) override; | 67 void ReturnResources(const cc::ReturnedResourceArray& resources) override; |
67 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; | 68 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; |
68 | 69 |
69 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 70 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
70 scoped_refptr<SurfacesState> surfaces_state_; | 71 scoped_refptr<SurfacesState> surfaces_state_; |
71 cc::SurfaceFactory factory_; | 72 cc::SurfaceFactory factory_; |
72 cc::SurfaceId cc_id_; | 73 cc::SurfaceId cc_id_; |
73 | 74 |
74 gfx::Size last_submitted_frame_size_; | 75 gfx::Size last_submitted_frame_size_; |
75 scoped_ptr<cc::CompositorFrame> pending_frame_; | 76 scoped_ptr<cc::CompositorFrame> pending_frame_; |
76 | 77 |
77 scoped_ptr<cc::SyntheticBeginFrameSource> synthetic_frame_source_; | 78 scoped_ptr<cc::SyntheticBeginFrameSource> synthetic_frame_source_; |
78 scoped_ptr<cc::DisplayScheduler> scheduler_; | 79 scoped_ptr<cc::DisplayScheduler> scheduler_; |
79 scoped_ptr<cc::Display> display_; | 80 scoped_ptr<cc::Display> display_; |
80 | 81 |
81 DISALLOW_COPY_AND_ASSIGN(TopLevelDisplayClient); | 82 DISALLOW_COPY_AND_ASSIGN(TopLevelDisplayClient); |
82 }; | 83 }; |
83 | 84 |
84 } // namespace mus | 85 } // namespace mus |
85 | 86 |
86 #endif // COMPONENTS_MUS_SURFACES_DISPLAY_IMPL_H_ | 87 #endif // COMPONENTS_MUS_SURFACES_DISPLAY_IMPL_H_ |
OLD | NEW |