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

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

Issue 6499024: Connect Skia PDF backend to printing subsystem. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to 80514 (but needs Skia rev >= 1059) Created 9 years, 8 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
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_PLATFORM_DEVICE_LINUX_H_ 5 #ifndef SKIA_EXT_PLATFORM_DEVICE_LINUX_H_
6 #define SKIA_EXT_PLATFORM_DEVICE_LINUX_H_ 6 #define SKIA_EXT_PLATFORM_DEVICE_LINUX_H_
7 #pragma once 7 #pragma once
8 8
9 #include "third_party/skia/include/core/SkDevice.h" 9 #include "third_party/skia/include/core/SkDevice.h"
10 10
11 typedef struct _cairo cairo_t; 11 typedef struct _cairo cairo_t;
12 12
13 namespace skia { 13 namespace skia {
14 14
15 // Blindly copying the mac hierarchy. 15 // Blindly copying the mac hierarchy.
16 class PlatformDevice : public SkDevice { 16 class PlatformDevice : public SkDevice {
17 public: 17 public:
18 typedef cairo_t* PlatformSurface; 18 typedef cairo_t* PlatformSurface;
19 19
20 // Returns if the preferred rendering engine is vectorial or bitmap based. 20 // Returns if the preferred rendering engine is vectorial or bitmap based.
21 virtual bool IsVectorial() = 0; 21 virtual bool IsVectorial() = 0;
22 22
23 // Returns if native platform APIs are allowed to render text to this device. 23 // Returns if native platform APIs are allowed to render text to this device.
24 virtual bool IsNativeFontRenderingAllowed(); 24 virtual bool IsNativeFontRenderingAllowed();
25 25
26 virtual PlatformSurface beginPlatformPaint() = 0; 26 virtual PlatformSurface beginPlatformPaint() = 0;
27 virtual void endPlatformPaint();
alokp 2011/04/06 20:36:32 I have already added this function in one of the C
vandebo (ex-Chrome) 2011/04/06 22:01:37 I see your CL got a LGTM. I'll rebase after you c
vandebo (ex-Chrome) 2011/04/07 00:25:35 Rebased.
27 28
28 protected: 29 protected:
29 // Forwards |bitmap| to SkDevice's constructor. 30 // Forwards |bitmap| to SkDevice's constructor.
30 explicit PlatformDevice(const SkBitmap& bitmap); 31 explicit PlatformDevice(const SkBitmap& bitmap);
31 }; 32 };
32 33
33 } // namespace skia 34 } // namespace skia
34 35
35 #endif // SKIA_EXT_PLATFORM_DEVICE_LINUX_H_ 36 #endif // SKIA_EXT_PLATFORM_DEVICE_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698