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/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
11 #include "cc/cc_export.h" | 12 #include "cc/cc_export.h" |
12 #include "cc/software_output_device.h" | 13 #include "cc/software_output_device.h" |
13 #include "third_party/WebKit/Source/Platform/chromium/public/WebCompositorOutput
Surface.h" | 14 #include "third_party/WebKit/Source/Platform/chromium/public/WebCompositorOutput
Surface.h" |
14 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" | 15 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" |
15 | 16 |
16 namespace gfx { | 17 namespace gfx { |
17 class Rect; | 18 class Rect; |
18 class Size; | 19 class Size; |
19 } | 20 } |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 // Notifies frame-rate smoothness preference. If true, all non-critical | 89 // Notifies frame-rate smoothness preference. If true, all non-critical |
89 // processing should be stopped, or lowered in priority. | 90 // processing should be stopped, or lowered in priority. |
90 virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) {} | 91 virtual void UpdateSmoothnessTakesPriority(bool prefer_smoothness) {} |
91 | 92 |
92 protected: | 93 protected: |
93 OutputSurfaceClient* client_; | 94 OutputSurfaceClient* client_; |
94 struct cc::OutputSurface::Capabilities capabilities_; | 95 struct cc::OutputSurface::Capabilities capabilities_; |
95 scoped_ptr<WebKit::WebGraphicsContext3D> context3d_; | 96 scoped_ptr<WebKit::WebGraphicsContext3D> context3d_; |
96 scoped_ptr<cc::SoftwareOutputDevice> software_device_; | 97 scoped_ptr<cc::SoftwareOutputDevice> software_device_; |
97 bool has_gl_discard_backbuffer_; | 98 bool has_gl_discard_backbuffer_; |
| 99 |
| 100 private: |
| 101 DISALLOW_COPY_AND_ASSIGN(OutputSurface); |
98 }; | 102 }; |
99 | 103 |
100 } // namespace cc | 104 } // namespace cc |
101 | 105 |
102 #endif // CC_OUTPUT_SURFACE_H_ | 106 #endif // CC_OUTPUT_SURFACE_H_ |
OLD | NEW |