Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / content / browser / compositor / software_output_device_mac.mm
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.
4
5 #import <Cocoa/Cocoa.h>
6
7 #include "content/browser/compositor/software_output_device_mac.h"
8
9 #include "content/browser/compositor/browser_compositor_ca_layer_tree_mac.h"
10 #include "ui/compositor/compositor.h"
11
12 namespace content {
13
14 SoftwareOutputDeviceMac::SoftwareOutputDeviceMac(ui::Compositor* compositor)
15     : compositor_(compositor) {
16 }
17
18 SoftwareOutputDeviceMac::~SoftwareOutputDeviceMac() {
19 }
20
21 void SoftwareOutputDeviceMac::EndPaint(cc::SoftwareFrameData* frame_data) {
22   SoftwareOutputDevice::EndPaint(frame_data);
23   BrowserCompositorCALayerTreeMacGotSoftwareFrame(
24       compositor_->widget(), frame_data, scale_factor_, canvas_.get());
25 }
26
27 }  // namespace content