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

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

Issue 11418217: Add skia::RefPtr class to wrap ref counted classes from Skia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit+rebase Created 8 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 | Annotate | Revision Log
« no previous file with comments | « skia/ext/vector_platform_device_emf_win.cc ('k') | skia/ext/vector_platform_device_skia.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) 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"
11 #include "skia/ext/platform_device.h" 11 #include "skia/ext/platform_device.h"
12 #include "third_party/skia/include/core/SkRefCnt.h" 12 #include "skia/ext/refptr.h"
13 #include "third_party/skia/include/core/SkTScopedPtr.h" 13 #include "third_party/skia/include/core/SkTScopedPtr.h"
14 #include "third_party/skia/include/pdf/SkPDFDevice.h" 14 #include "third_party/skia/include/pdf/SkPDFDevice.h"
15 15
16 class SkMatrix; 16 class SkMatrix;
17 17
18 namespace skia { 18 namespace skia {
19 19
20 class BitmapPlatformDevice; 20 class BitmapPlatformDevice;
21 21
22 class VectorPlatformDeviceSkia : public SkPDFDevice, public PlatformDevice { 22 class VectorPlatformDeviceSkia : public SkPDFDevice, public PlatformDevice {
(...skipping 20 matching lines...) Expand all
43 const CGRect* src_rect) OVERRIDE; 43 const CGRect* src_rect) OVERRIDE;
44 virtual CGContextRef GetBitmapContext() OVERRIDE; 44 virtual CGContextRef GetBitmapContext() OVERRIDE;
45 #elif defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_OPENBSD) 45 #elif defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_OPENBSD)
46 virtual void DrawToNativeContext(PlatformSurface surface, 46 virtual void DrawToNativeContext(PlatformSurface surface,
47 int x, 47 int x,
48 int y, 48 int y,
49 const PlatformRect* src_rect) OVERRIDE; 49 const PlatformRect* src_rect) OVERRIDE;
50 #endif 50 #endif
51 51
52 private: 52 private:
53 SkRefPtr<BitmapPlatformDevice> raster_surface_; 53 skia::RefPtr<BitmapPlatformDevice> raster_surface_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(VectorPlatformDeviceSkia); 55 DISALLOW_COPY_AND_ASSIGN(VectorPlatformDeviceSkia);
56 }; 56 };
57 57
58 } // namespace skia 58 } // namespace skia
59 59
60 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_SKIA_H_ 60 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_SKIA_H_
OLDNEW
« no previous file with comments | « skia/ext/vector_platform_device_emf_win.cc ('k') | skia/ext/vector_platform_device_skia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698