| // Copyright 2014 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #import <Cocoa/Cocoa.h> |
| |
| #include "content/browser/compositor/software_output_device_mac.h" |
| |
| #include "ui/accelerated_widget_mac/accelerated_widget_mac.h" |
| #include "ui/compositor/compositor.h" |
| |
| namespace content { |
| |
| SoftwareOutputDeviceMac::SoftwareOutputDeviceMac(ui::Compositor* compositor) |
| : compositor_(compositor) { |
| } |
| |
| SoftwareOutputDeviceMac::~SoftwareOutputDeviceMac() { |
| } |
| |
| void SoftwareOutputDeviceMac::EndPaint(cc::SoftwareFrameData* frame_data) { |
| SoftwareOutputDevice::EndPaint(frame_data); |
| ui::AcceleratedWidgetMacGotSoftwareFrame( |
| compositor_->widget(), scale_factor_, surface_->getCanvas()); |
| } |
| |
| } // namespace content |