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

Side by Side Diff: skia/ext/platform_device_mac.h

Issue 6732027: Replace include with forward declarations.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 9 months 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 | Annotate | Revision Log
« no previous file with comments | « skia/ext/platform_canvas_unittest.cc ('k') | skia/ext/platform_device_mac.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 SKIA_EXT_PLATFORM_DEVICE_MAC_H_ 5 #ifndef SKIA_EXT_PLATFORM_DEVICE_MAC_H_
6 #define SKIA_EXT_PLATFORM_DEVICE_MAC_H_ 6 #define SKIA_EXT_PLATFORM_DEVICE_MAC_H_
7 #pragma once 7 #pragma once
8 8
9 #import <ApplicationServices/ApplicationServices.h>
10 #include "third_party/skia/include/core/SkDevice.h" 9 #include "third_party/skia/include/core/SkDevice.h"
11 10
11 typedef struct CGContext* CGContextRef;
12 typedef struct CGRect CGRect;
13
12 class SkMatrix; 14 class SkMatrix;
13 class SkPath; 15 class SkPath;
14 class SkRegion; 16 class SkRegion;
15 17
16 namespace skia { 18 namespace skia {
17 19
18 // A device is basically a wrapper around SkBitmap that provides a surface for 20 // A device is basically a wrapper around SkBitmap that provides a surface for
19 // SkCanvas to draw into. Our device provides a surface CoreGraphics can also 21 // SkCanvas to draw into. Our device provides a surface CoreGraphics can also
20 // write to. It also provides functionality to play well with CG drawing 22 // write to. It also provides functionality to play well with CG drawing
21 // functions. 23 // functions.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 64
63 // Loads the specified Skia transform into the device context 65 // Loads the specified Skia transform into the device context
64 static void LoadTransformToCGContext(CGContextRef context, 66 static void LoadTransformToCGContext(CGContextRef context,
65 const SkMatrix& matrix); 67 const SkMatrix& matrix);
66 }; 68 };
67 69
68 } // namespace skia 70 } // namespace skia
69 71
70 #endif // SKIA_EXT_PLATFORM_DEVICE_MAC_H_ 72 #endif // SKIA_EXT_PLATFORM_DEVICE_MAC_H_
71 73
OLDNEW
« no previous file with comments | « skia/ext/platform_canvas_unittest.cc ('k') | skia/ext/platform_device_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698