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

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

Issue 16206002: Add more support for FreeBSD (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years, 3 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_VECTOR_PLATFORM_DEVICE_SKIA_H_ 5 #ifndef SKIA_EXT_VECTOR_PLATFORM_DEVICE_SKIA_H_
6 #define SKIA_EXT_VECTOR_PLATFORM_DEVICE_SKIA_H_ 6 #define SKIA_EXT_VECTOR_PLATFORM_DEVICE_SKIA_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 23 matching lines...) Expand all
34 virtual void DrawToNativeContext(HDC dc, 34 virtual void DrawToNativeContext(HDC dc,
35 int x, 35 int x,
36 int y, 36 int y,
37 const RECT* src_rect) OVERRIDE; 37 const RECT* src_rect) OVERRIDE;
38 #elif defined(OS_MACOSX) 38 #elif defined(OS_MACOSX)
39 virtual void DrawToNativeContext(CGContext* context, 39 virtual void DrawToNativeContext(CGContext* context,
40 int x, 40 int x,
41 int y, 41 int y,
42 const CGRect* src_rect) OVERRIDE; 42 const CGRect* src_rect) OVERRIDE;
43 virtual CGContextRef GetBitmapContext() OVERRIDE; 43 virtual CGContextRef GetBitmapContext() OVERRIDE;
44 #elif defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_OPENBSD) 44 #elif defined(OS_POSIX)
45 virtual void DrawToNativeContext(PlatformSurface surface, 45 virtual void DrawToNativeContext(PlatformSurface surface,
46 int x, 46 int x,
47 int y, 47 int y,
48 const PlatformRect* src_rect) OVERRIDE; 48 const PlatformRect* src_rect) OVERRIDE;
49 #endif 49 #endif
50 50
51 private: 51 private:
52 skia::RefPtr<BitmapPlatformDevice> raster_surface_; 52 skia::RefPtr<BitmapPlatformDevice> raster_surface_;
53 53
54 DISALLOW_COPY_AND_ASSIGN(VectorPlatformDeviceSkia); 54 DISALLOW_COPY_AND_ASSIGN(VectorPlatformDeviceSkia);
55 }; 55 };
56 56
57 } // namespace skia 57 } // namespace skia
58 58
59 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_SKIA_H_ 59 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_SKIA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698