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

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

Issue 7348010: Added Header and Footer support using Skia (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Added SK_API to vector platform device skia 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
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 SK_API void setDrawingArea(SkPDFDevice::DrawingArea area);
85
82 protected: 86 protected:
83 virtual SkDevice* onCreateCompatibleDevice(SkBitmap::Config, int width, 87 virtual SkDevice* onCreateCompatibleDevice(SkBitmap::Config, int width,
84 int height, bool isOpaque, 88 int height, bool isOpaque,
85 Usage usage); 89 Usage usage);
86 90
87 private: 91 private:
88 SkRefPtr<SkPDFDevice> pdf_device_; 92 SkRefPtr<SkPDFDevice> pdf_device_;
89 SkRefPtr<BitmapPlatformDevice> raster_surface_; 93 SkRefPtr<BitmapPlatformDevice> raster_surface_;
90 94
91 DISALLOW_COPY_AND_ASSIGN(VectorPlatformDeviceSkia); 95 DISALLOW_COPY_AND_ASSIGN(VectorPlatformDeviceSkia);
92 }; 96 };
93 97
94 } // namespace skia 98 } // namespace skia
95 99
96 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_SKIA_H_ 100 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_SKIA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698