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_GLES2_COMMAND_BUFFER_LOCAL_CLIENT_H_ | 5 #ifndef SERVICES_UI_GLES2_COMMAND_BUFFER_LOCAL_CLIENT_H_ |
6 #define COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_CLIENT_H_ | 6 #define SERVICES_UI_GLES2_COMMAND_BUFFER_LOCAL_CLIENT_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "ui/gfx/swap_result.h" | 10 #include "ui/gfx/swap_result.h" |
11 | 11 |
12 namespace base { | 12 namespace base { |
13 class TimeDelta; | 13 class TimeDelta; |
14 class TimeTicks; | 14 class TimeTicks; |
15 } | 15 } |
16 | 16 |
17 namespace mus { | 17 namespace mus { |
18 | 18 |
19 class CommandBufferLocalClient { | 19 class CommandBufferLocalClient { |
20 public: | 20 public: |
21 virtual void UpdateVSyncParameters(const base::TimeTicks& timebase, | 21 virtual void UpdateVSyncParameters(const base::TimeTicks& timebase, |
22 const base::TimeDelta& interval) = 0; | 22 const base::TimeDelta& interval) = 0; |
23 virtual void GpuCompletedSwapBuffers(gfx::SwapResult result) = 0; | 23 virtual void GpuCompletedSwapBuffers(gfx::SwapResult result) = 0; |
24 | 24 |
25 protected: | 25 protected: |
26 virtual ~CommandBufferLocalClient() {} | 26 virtual ~CommandBufferLocalClient() {} |
27 }; | 27 }; |
28 | 28 |
29 } // namespace mus | 29 } // namespace mus |
30 | 30 |
31 #endif // COMPONENTS_MUS_GLES2_COMMAND_BUFFER_LOCAL_CLIENT_H_ | 31 #endif // SERVICES_UI_GLES2_COMMAND_BUFFER_LOCAL_CLIENT_H_ |
OLD | NEW |