| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 // Obtain the 3d context or the software device associated with this output | 49 // Obtain the 3d context or the software device associated with this output |
| 50 // surface. Either of these may return a null pointer, but not both. | 50 // surface. Either of these may return a null pointer, but not both. |
| 51 // In the event of a lost context, the entire output surface should be | 51 // In the event of a lost context, the entire output surface should be |
| 52 // recreated. | 52 // recreated. |
| 53 virtual WebKit::WebGraphicsContext3D* Context3D() const = 0; | 53 virtual WebKit::WebGraphicsContext3D* Context3D() const = 0; |
| 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. | 57 // capabilities().has_parent_compositor. |
| 58 virtual void SendFrameToParentCompositor(const CompositorFrame&) {} | 58 virtual void SendFrameToParentCompositor(CompositorFrame&) {} |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace cc | 61 } // namespace cc |
| 62 | 62 |
| 63 #endif // CC_OUTPUT_SURFACE_H_ | 63 #endif // CC_OUTPUT_SURFACE_H_ |
| OLD | NEW |