OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_MUS_H_ |
| 6 #define CONTENT_BROWSER_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_MUS_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "cc/output/software_output_device.h" |
| 10 #include "content/common/content_export.h" |
| 11 |
| 12 namespace ui { |
| 13 class Compositor; |
| 14 } |
| 15 |
| 16 namespace content { |
| 17 |
| 18 // Mus implementation of software compositing: Chrome will do a software |
| 19 // composite and ship the resultant bitmap to an instance of the mus |
| 20 // window server. Remove this upon completion of http://crbug.com/548451 |
| 21 class SoftwareOutputDeviceMus : public cc::SoftwareOutputDevice { |
| 22 public: |
| 23 explicit SoftwareOutputDeviceMus(ui::Compositor* compositor); |
| 24 |
| 25 private: |
| 26 // cc::SoftwareOutputDevice |
| 27 void EndPaint() override; |
| 28 |
| 29 ui::Compositor* compositor_; |
| 30 |
| 31 DISALLOW_COPY_AND_ASSIGN(SoftwareOutputDeviceMus); |
| 32 }; |
| 33 |
| 34 } // namespace content |
| 35 |
| 36 #endif // CONTENT_BROWSER_COMPOSITOR_SOFTWARE_OUTPUT_DEVICE_MUS_H_ |
OLD | NEW |