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 SERVICES_SURFACES_DISPLAY_IMPL_H_ | 5 #ifndef SERVICES_SURFACES_DISPLAY_IMPL_H_ |
6 #define SERVICES_SURFACES_DISPLAY_IMPL_H_ | 6 #define SERVICES_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 23 matching lines...) Expand all Loading... |
34 ~DisplayImpl() override; | 34 ~DisplayImpl() override; |
35 | 35 |
36 private: | 36 private: |
37 void OnContextCreated(mojo::CommandBufferPtr gles2_client); | 37 void OnContextCreated(mojo::CommandBufferPtr gles2_client); |
38 | 38 |
39 // mojo::Display implementation: | 39 // mojo::Display implementation: |
40 void SubmitFrame(mojo::FramePtr frame, | 40 void SubmitFrame(mojo::FramePtr frame, |
41 const SubmitFrameCallback& callback) override; | 41 const SubmitFrameCallback& callback) override; |
42 | 42 |
43 // DisplayClient implementation. | 43 // DisplayClient implementation. |
| 44 void DisplayDamaged() override; |
| 45 void DidSwapBuffers() override; |
| 46 void DidSwapBuffersComplete() override; |
44 void CommitVSyncParameters(base::TimeTicks timebase, | 47 void CommitVSyncParameters(base::TimeTicks timebase, |
45 base::TimeDelta interval) override; | 48 base::TimeDelta interval) override; |
46 void OutputSurfaceLost() override; | 49 void OutputSurfaceLost() override; |
47 void SetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override; | 50 void SetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override; |
48 | 51 |
49 // ViewportParameterListener | 52 // ViewportParameterListener |
50 void OnVSyncParametersUpdated(int64_t timebase, int64_t interval) override; | 53 void OnVSyncParametersUpdated(int64_t timebase, int64_t interval) override; |
51 | 54 |
52 // SurfaceFactoryClient implementation. | 55 // SurfaceFactoryClient implementation. |
53 void ReturnResources(const cc::ReturnedResourceArray& resources) override; | 56 void ReturnResources(const cc::ReturnedResourceArray& resources) override; |
(...skipping 14 matching lines...) Expand all Loading... |
68 | 71 |
69 mojo::Binding<mojo::ViewportParameterListener> viewport_param_binding_; | 72 mojo::Binding<mojo::ViewportParameterListener> viewport_param_binding_; |
70 mojo::StrongBinding<mojo::Display> display_binding_; | 73 mojo::StrongBinding<mojo::Display> display_binding_; |
71 | 74 |
72 DISALLOW_COPY_AND_ASSIGN(DisplayImpl); | 75 DISALLOW_COPY_AND_ASSIGN(DisplayImpl); |
73 }; | 76 }; |
74 | 77 |
75 } // namespace surfaces | 78 } // namespace surfaces |
76 | 79 |
77 #endif // SERVICES_SURFACES_DISPLAY_IMPL_H_ | 80 #endif // SERVICES_SURFACES_DISPLAY_IMPL_H_ |
OLD | NEW |