| 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 "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 OutputSurface(scoped_ptr<cc::SoftwareOutputDevice> software_device); | 38 OutputSurface(scoped_ptr<cc::SoftwareOutputDevice> software_device); |
| 39 | 39 |
| 40 OutputSurface(scoped_ptr<WebKit::WebGraphicsContext3D> context3d, | 40 OutputSurface(scoped_ptr<WebKit::WebGraphicsContext3D> context3d, |
| 41 scoped_ptr<cc::SoftwareOutputDevice> software_device); | 41 scoped_ptr<cc::SoftwareOutputDevice> software_device); |
| 42 | 42 |
| 43 virtual ~OutputSurface(); | 43 virtual ~OutputSurface(); |
| 44 | 44 |
| 45 struct Capabilities { | 45 struct Capabilities { |
| 46 Capabilities() | 46 Capabilities() |
| 47 : has_parent_compositor(false) {} | 47 : has_parent_compositor(false), |
| 48 max_frames_pending(0) {} |
| 48 | 49 |
| 49 bool has_parent_compositor; | 50 bool has_parent_compositor; |
| 51 int max_frames_pending; |
| 50 }; | 52 }; |
| 51 | 53 |
| 52 const Capabilities& capabilities() const { | 54 const Capabilities& capabilities() const { |
| 53 return capabilities_; | 55 return capabilities_; |
| 54 } | 56 } |
| 55 | 57 |
| 56 // Obtain the 3d context or the software device associated with this output | 58 // Obtain the 3d context or the software device associated with this output |
| 57 // surface. Either of these may return a null pointer, but not both. | 59 // surface. Either of these may return a null pointer, but not both. |
| 58 // In the event of a lost context, the entire output surface should be | 60 // In the event of a lost context, the entire output surface should be |
| 59 // recreated. | 61 // recreated. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 scoped_ptr<cc::SoftwareOutputDevice> software_device_; | 99 scoped_ptr<cc::SoftwareOutputDevice> software_device_; |
| 98 bool has_gl_discard_backbuffer_; | 100 bool has_gl_discard_backbuffer_; |
| 99 | 101 |
| 100 private: | 102 private: |
| 101 DISALLOW_COPY_AND_ASSIGN(OutputSurface); | 103 DISALLOW_COPY_AND_ASSIGN(OutputSurface); |
| 102 }; | 104 }; |
| 103 | 105 |
| 104 } // namespace cc | 106 } // namespace cc |
| 105 | 107 |
| 106 #endif // CC_OUTPUT_SURFACE_H_ | 108 #endif // CC_OUTPUT_SURFACE_H_ |
| OLD | NEW |