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

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

Issue 2400873002: keep only one typedef for the native drawing context (Closed)
Patch Set: native_drawing_context.h Created 4 years, 2 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
« no previous file with comments | « skia/ext/platform_canvas_unittest.cc ('k') | skia/ext/platform_device_linux.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_H_ 5 #ifndef SKIA_EXT_PLATFORM_DEVICE_H_
6 #define SKIA_EXT_PLATFORM_DEVICE_H_ 6 #define SKIA_EXT_PLATFORM_DEVICE_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
11 #include <windows.h> 11 #include <windows.h>
12 #include <vector> 12 #include <vector>
13 #endif 13 #endif
14 14
15 #include "skia/ext/platform_surface.h" 15 #include "skia/ext/native_drawing_context.h"
16 #include "third_party/skia/include/core/SkBitmapDevice.h" 16 #include "third_party/skia/include/core/SkBitmapDevice.h"
17 #include "third_party/skia/include/core/SkTypes.h" 17 #include "third_party/skia/include/core/SkTypes.h"
18 18
19 class SkMatrix; 19 class SkMatrix;
20 class SkPath; 20 class SkPath;
21 21
22 namespace skia { 22 namespace skia {
23 23
24 class PlatformDevice; 24 class PlatformDevice;
25 class ScopedPlatformPaint; 25 class ScopedPlatformPaint;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // operations drawing into the bitmap. This is possibly heavyweight, so it 58 // operations drawing into the bitmap. This is possibly heavyweight, so it
59 // should exist only during one pass of rendering. 59 // should exist only during one pass of rendering.
60 virtual CGContextRef GetBitmapContext(const SkMatrix& transform, 60 virtual CGContextRef GetBitmapContext(const SkMatrix& transform,
61 const SkIRect& clip_bounds) = 0; 61 const SkIRect& clip_bounds) = 0;
62 #endif 62 #endif
63 63
64 private: 64 private:
65 // The DC that corresponds to the bitmap, used for GDI operations drawing 65 // The DC that corresponds to the bitmap, used for GDI operations drawing
66 // into the bitmap. This is possibly heavyweight, so it should be existant 66 // into the bitmap. This is possibly heavyweight, so it should be existant
67 // only during one pass of rendering. 67 // only during one pass of rendering.
68 virtual PlatformSurface BeginPlatformPaint(const SkMatrix& transform, 68 virtual NativeDrawingContext BeginPlatformPaint(const SkMatrix& transform,
69 const SkIRect& clip_bounds); 69 const SkIRect& clip_bounds);
70 70
71 friend class ScopedPlatformPaint; 71 friend class ScopedPlatformPaint;
72 }; 72 };
73 73
74 } // namespace skia 74 } // namespace skia
75 75
76 #endif // SKIA_EXT_PLATFORM_DEVICE_H_ 76 #endif // SKIA_EXT_PLATFORM_DEVICE_H_
OLDNEW
« no previous file with comments | « skia/ext/platform_canvas_unittest.cc ('k') | skia/ext/platform_device_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698