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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "cc/surfaces/display_client.h" | 9 #include "cc/surfaces/display_client.h" |
10 #include "cc/surfaces/surface_factory.h" | 10 #include "cc/surfaces/surface_factory.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 void CommitVSyncParameters(base::TimeTicks timebase, | 51 void CommitVSyncParameters(base::TimeTicks timebase, |
52 base::TimeDelta interval) override; | 52 base::TimeDelta interval) override; |
53 void OutputSurfaceLost() override; | 53 void OutputSurfaceLost() override; |
54 void SetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override; | 54 void SetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override; |
55 | 55 |
56 // SurfacesContextProviderDelegate: | 56 // SurfacesContextProviderDelegate: |
57 void OnVSyncParametersUpdated(int64_t timebase, int64_t interval) override; | 57 void OnVSyncParametersUpdated(int64_t timebase, int64_t interval) override; |
58 | 58 |
59 // SurfaceFactoryClient implementation. | 59 // SurfaceFactoryClient implementation. |
60 void ReturnResources(const cc::ReturnedResourceArray& resources) override; | 60 void ReturnResources(const cc::ReturnedResourceArray& resources) override; |
| 61 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; |
61 | 62 |
62 scoped_refptr<SurfacesState> surfaces_state_; | 63 scoped_refptr<SurfacesState> surfaces_state_; |
63 cc::SurfaceFactory factory_; | 64 cc::SurfaceFactory factory_; |
64 cc::SurfaceId cc_id_; | 65 cc::SurfaceId cc_id_; |
65 | 66 |
66 gfx::Size last_submitted_frame_size_; | 67 gfx::Size last_submitted_frame_size_; |
67 scoped_ptr<cc::CompositorFrame> pending_frame_; | 68 scoped_ptr<cc::CompositorFrame> pending_frame_; |
68 | 69 |
69 scoped_ptr<cc::Display> display_; | 70 scoped_ptr<cc::Display> display_; |
70 | 71 |
71 DISALLOW_COPY_AND_ASSIGN(TopLevelDisplayClient); | 72 DISALLOW_COPY_AND_ASSIGN(TopLevelDisplayClient); |
72 }; | 73 }; |
73 | 74 |
74 } // namespace mus | 75 } // namespace mus |
75 | 76 |
76 #endif // COMPONENTS_MUS_SURFACES_DISPLAY_IMPL_H_ | 77 #endif // COMPONENTS_MUS_SURFACES_DISPLAY_IMPL_H_ |
OLD | NEW |