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

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

Issue 7064033: Virtual destructors should have virtual keyword. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 7 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 | « remoting/protocol/rtp_reader.h ('k') | webkit/appcache/appcache_disk_cache.h » ('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 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 16 matching lines...) Expand all
27 virtual SkDevice* newDevice(SkCanvas* notUsed, SkBitmap::Config config, 27 virtual SkDevice* newDevice(SkCanvas* notUsed, SkBitmap::Config config,
28 int width, int height, bool isOpaque, 28 int width, int height, bool isOpaque,
29 bool isForLayer); 29 bool isForLayer);
30 private: 30 private:
31 SkPDFDeviceFactory factory_; 31 SkPDFDeviceFactory factory_;
32 }; 32 };
33 33
34 class VectorPlatformDeviceSkia : public PlatformDevice { 34 class VectorPlatformDeviceSkia : public PlatformDevice {
35 public: 35 public:
36 SK_API VectorPlatformDeviceSkia(SkPDFDevice* pdf_device); 36 SK_API VectorPlatformDeviceSkia(SkPDFDevice* pdf_device);
37 ~VectorPlatformDeviceSkia(); 37 virtual ~VectorPlatformDeviceSkia();
38 38
39 SkPDFDevice* PdfDevice() { return pdf_device_.get(); } 39 SkPDFDevice* PdfDevice() { return pdf_device_.get(); }
40 40
41 // PlatformDevice methods. 41 // PlatformDevice methods.
42 virtual bool IsVectorial(); 42 virtual bool IsVectorial();
43 virtual bool IsNativeFontRenderingAllowed(); 43 virtual bool IsNativeFontRenderingAllowed();
44 44
45 virtual PlatformSurface BeginPlatformPaint(); 45 virtual PlatformSurface BeginPlatformPaint();
46 virtual void EndPlatformPaint(); 46 virtual void EndPlatformPaint();
47 47
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 private: 94 private:
95 SkRefPtr<SkPDFDevice> pdf_device_; 95 SkRefPtr<SkPDFDevice> pdf_device_;
96 SkRefPtr<BitmapPlatformDevice> raster_surface_; 96 SkRefPtr<BitmapPlatformDevice> raster_surface_;
97 97
98 DISALLOW_COPY_AND_ASSIGN(VectorPlatformDeviceSkia); 98 DISALLOW_COPY_AND_ASSIGN(VectorPlatformDeviceSkia);
99 }; 99 };
100 100
101 } // namespace skia 101 } // namespace skia
102 102
103 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_SKIA_H_ 103 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_SKIA_H_
OLDNEW
« no previous file with comments | « remoting/protocol/rtp_reader.h ('k') | webkit/appcache/appcache_disk_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698