Make USB permissions work in the new permission message system
[chromium-blink-merge.git] / content / browser / compositor / software_output_device_mac.mm
blob5dacbae755c5eaa97a69fb4544135f1a4da80bf2
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
3 // found in the LICENSE file.
5 #import <Cocoa/Cocoa.h>
7 #include "content/browser/compositor/software_output_device_mac.h"
9 #include "ui/accelerated_widget_mac/accelerated_widget_mac.h"
10 #include "ui/compositor/compositor.h"
12 namespace content {
14 SoftwareOutputDeviceMac::SoftwareOutputDeviceMac(ui::Compositor* compositor)
15     : compositor_(compositor) {
18 SoftwareOutputDeviceMac::~SoftwareOutputDeviceMac() {
21 void SoftwareOutputDeviceMac::EndPaint() {
22   SoftwareOutputDevice::EndPaint();
23   ui::AcceleratedWidgetMacGotSoftwareFrame(
24       compositor_->widget(), scale_factor_, surface_->getCanvas());
27 }  // namespace content