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