| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 CC_OUTPUT_SURFACE_H_ | 5 #ifndef CC_OUTPUT_SURFACE_H_ |
| 6 #define CC_OUTPUT_SURFACE_H_ | 6 #define CC_OUTPUT_SURFACE_H_ |
| 7 | 7 |
| 8 #define USE_CC_OUTPUT_SURFACE // TODO(danakj): Remove this. | 8 #define USE_CC_OUTPUT_SURFACE // TODO(danakj): Remove this. |
| 9 | 9 |
| 10 #include "cc/cc_export.h" | 10 #include "cc/cc_export.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 virtual SoftwareOutputDevice* SoftwareDevice() const = 0; | 54 virtual SoftwareOutputDevice* SoftwareDevice() const = 0; |
| 55 | 55 |
| 56 // Sends frame data to the parent compositor. This should only be called when | 56 // Sends frame data to the parent compositor. This should only be called when |
| 57 // capabilities().has_parent_compositor. The implementation may destroy or | 57 // capabilities().has_parent_compositor. The implementation may destroy or |
| 58 // steal the contents of the CompositorFrame passed in. | 58 // steal the contents of the CompositorFrame passed in. |
| 59 virtual void SendFrameToParentCompositor(CompositorFrame*) = 0; | 59 virtual void SendFrameToParentCompositor(CompositorFrame*) = 0; |
| 60 | 60 |
| 61 // Notifies frame-rate smoothness preference. If true, all non-critical | 61 // Notifies frame-rate smoothness preference. If true, all non-critical |
| 62 // processing should be stopped, or lowered in priority. | 62 // processing should be stopped, or lowered in priority. |
| 63 virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) {} | 63 virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) {} |
| 64 |
| 65 // Requests a vsync notification from the output surface. The notification |
| 66 // will be delivered by calling OutputSurfaceClient::DidVSync for all future |
| 67 // vsync events until the callback is disabled. |
| 68 virtual void EnableVSyncNotification(bool enable) {} |
| 64 }; | 69 }; |
| 65 | 70 |
| 66 } // namespace cc | 71 } // namespace cc |
| 67 | 72 |
| 68 #endif // CC_OUTPUT_SURFACE_H_ | 73 #endif // CC_OUTPUT_SURFACE_H_ |
| OLD | NEW |