Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: ui/compositor/mac/software_layer.h

Issue 753933002: MacViews: Move content::AcceleratedWidget to new component, ui/accelerated_widget_mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20141124-MacViews-MoveSoftwareLayerMac-fromcl
Patch Set: rebase to master Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_SOFTWARE_LAYER_MAC_H_ 5 #ifndef UI_COMPOSITOR_MAC_SOFTWARE_LAYER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_SOFTWARE_LAYER_MAC_H_ 6 #define UI_COMPOSITOR_MAC_SOFTWARE_LAYER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "ui/compositor/compositor_export.h"
10 #include "ui/gfx/geometry/size.h" 11 #include "ui/gfx/geometry/size.h"
11 12
13 COMPOSITOR_EXPORT
12 @interface SoftwareLayer : CALayer 14 @interface SoftwareLayer : CALayer
13 - (id)init; 15 - (id)init;
14 16
15 - (void)setContentsToData:(const void *)data 17 - (void)setContentsToData:(const void *)data
16 withRowBytes:(size_t)rowBytes 18 withRowBytes:(size_t)rowBytes
17 withPixelSize:(gfx::Size)pixelSize 19 withPixelSize:(gfx::Size)pixelSize
18 withScaleFactor:(float)scaleFactor; 20 withScaleFactor:(float)scaleFactor;
19 @end 21 @end
20 22
21 23
22 #endif // CONTENT_BROWSER_RENDERER_HOST_SOFTWARE_LAYER_MAC_H_ 24 #endif // UI_COMPOSITOR_MAC_SOFTWARE_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698