summaryrefslogtreecommitdiffstats
path: root/ui/accelerated_widget_mac/software_layer.h
blob: 314314e99dbfb3804ec46101c632a1a2ea299251 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// 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.

#ifndef UI_ACCELERATED_WIDGET_MAC_SOFTWARE_LAYER_H_
#define UI_ACCELERATED_WIDGET_MAC_SOFTWARE_LAYER_H_

#import <Cocoa/Cocoa.h>

#include "ui/gfx/geometry/size.h"

@interface SoftwareLayer : CALayer
- (id)init;

- (void)setContentsToData:(const void *)data
             withRowBytes:(size_t)rowBytes
            withPixelSize:(gfx::Size)pixelSize
          withScaleFactor:(float)scaleFactor;
@end


#endif  // UI_ACCELERATED_WIDGET_MAC_SOFTWARE_LAYER_H_