blob: 5dacbae755c5eaa97a69fb4544135f1a4da80bf2 [file] [log] [blame]
// 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() {
SoftwareOutputDevice::EndPaint();
ui::AcceleratedWidgetMacGotSoftwareFrame(
compositor_->widget(), scale_factor_, surface_->getCanvas());
}
} // namespace content