OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_BROWSER_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_MAC_H_ | 5 #ifndef CONTENT_BROWSER_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_MAC_H_ |
6 #define CONTENT_BROWSER_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_MAC_H_ | 6 #define CONTENT_BROWSER_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_MAC_H_ |
7 | 7 |
8 #include "cc/output/software_output_device.h" | 8 #include "cc/output/software_output_device.h" |
9 | 9 |
10 namespace gfx { | 10 namespace gfx { |
11 class Canvas; | 11 class Canvas; |
12 } | 12 } |
13 | 13 |
14 namespace ui { | 14 namespace ui { |
15 class Compositor; | 15 class Compositor; |
16 } | 16 } |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 | 19 |
20 class SoftwareOutputDeviceMac : public cc::SoftwareOutputDevice { | 20 class SoftwareOutputDeviceMac : public cc::SoftwareOutputDevice { |
21 public: | 21 public: |
22 explicit SoftwareOutputDeviceMac(ui::Compositor* compositor); | 22 explicit SoftwareOutputDeviceMac(ui::Compositor* compositor); |
23 virtual ~SoftwareOutputDeviceMac(); | 23 virtual ~SoftwareOutputDeviceMac(); |
24 | 24 |
25 virtual void EndPaint(cc::SoftwareFrameData* frame_data) OVERRIDE; | 25 virtual void EndPaint(cc::SoftwareFrameData* frame_data) override; |
26 | 26 |
27 private: | 27 private: |
28 ui::Compositor* compositor_; | 28 ui::Compositor* compositor_; |
29 | 29 |
30 DISALLOW_COPY_AND_ASSIGN(SoftwareOutputDeviceMac); | 30 DISALLOW_COPY_AND_ASSIGN(SoftwareOutputDeviceMac); |
31 }; | 31 }; |
32 | 32 |
33 } // namespace content | 33 } // namespace content |
34 | 34 |
35 #endif // CONTENT_BROWSER_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_MAC_H_ | 35 #endif // CONTENT_BROWSER_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_MAC_H_ |
OLD | NEW |