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

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

Issue 7670045: Revert 97219 - Added Header and Footer support in Linux, Windows and Mac for Skia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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 | « printing/units.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 #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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 const SkPath& path, const SkMatrix* matrix, 72 const SkPath& path, const SkMatrix* matrix,
73 const SkPaint& paint); 73 const SkPaint& paint);
74 virtual void drawVertices(const SkDraw& draw, SkCanvas::VertexMode, 74 virtual void drawVertices(const SkDraw& draw, SkCanvas::VertexMode,
75 int vertexCount, const SkPoint verts[], 75 int vertexCount, const SkPoint verts[],
76 const SkPoint texs[], const SkColor colors[], 76 const SkPoint texs[], const SkColor colors[],
77 SkXfermode* xmode, const uint16_t indices[], 77 SkXfermode* xmode, const uint16_t indices[],
78 int indexCount, const SkPaint& paint); 78 int indexCount, const SkPaint& paint);
79 virtual void drawDevice(const SkDraw& draw, SkDevice*, int x, int y, 79 virtual void drawDevice(const SkDraw& draw, SkDevice*, int x, int y,
80 const SkPaint&); 80 const SkPaint&);
81 81
82 // Sets the drawing area for the device. Subsequent draw calls are
83 // directed to the specific drawing area (margin or content area).
84 void setDrawingArea(SkPDFDevice::DrawingArea area);
85
86 protected: 82 protected:
87 virtual SkDevice* onCreateCompatibleDevice(SkBitmap::Config, int width, 83 virtual SkDevice* onCreateCompatibleDevice(SkBitmap::Config, int width,
88 int height, bool isOpaque, 84 int height, bool isOpaque,
89 Usage usage); 85 Usage usage);
90 86
91 private: 87 private:
92 SkRefPtr<SkPDFDevice> pdf_device_; 88 SkRefPtr<SkPDFDevice> pdf_device_;
93 SkRefPtr<BitmapPlatformDevice> raster_surface_; 89 SkRefPtr<BitmapPlatformDevice> raster_surface_;
94 90
95 DISALLOW_COPY_AND_ASSIGN(VectorPlatformDeviceSkia); 91 DISALLOW_COPY_AND_ASSIGN(VectorPlatformDeviceSkia);
96 }; 92 };
97 93
98 } // namespace skia 94 } // namespace skia
99 95
100 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_SKIA_H_ 96 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_SKIA_H_
OLDNEW
« no previous file with comments | « printing/units.cc ('k') | skia/ext/vector_platform_device_skia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698