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

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

Issue 6588012: roll skia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 | « skia/ext/bitmap_platform_device_win.cc ('k') | skia/ext/vector_platform_device_linux.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_LINUX_H_ 5 #ifndef SKIA_EXT_VECTOR_PLATFORM_DEVICE_LINUX_H_
6 #define SKIA_EXT_VECTOR_PLATFORM_DEVICE_LINUX_H_ 6 #define SKIA_EXT_VECTOR_PLATFORM_DEVICE_LINUX_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "skia/ext/platform_device.h" 10 #include "skia/ext/platform_device.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 const SkPaint& paint) OVERRIDE; 72 const SkPaint& paint) OVERRIDE;
73 virtual void drawVertices(const SkDraw& draw, SkCanvas::VertexMode, 73 virtual void drawVertices(const SkDraw& draw, SkCanvas::VertexMode,
74 int vertexCount, 74 int vertexCount,
75 const SkPoint verts[], const SkPoint texs[], 75 const SkPoint verts[], const SkPoint texs[],
76 const SkColor colors[], SkXfermode* xmode, 76 const SkColor colors[], SkXfermode* xmode,
77 const uint16_t indices[], int indexCount, 77 const uint16_t indices[], int indexCount,
78 const SkPaint& paint) OVERRIDE; 78 const SkPaint& paint) OVERRIDE;
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&) OVERRIDE; 80 const SkPaint&) OVERRIDE;
81 81
82 virtual void setMatrixClip(const SkMatrix& transform, const SkRegion& region); 82 virtual void setMatrixClip(const SkMatrix& transform, const SkRegion& region,
83 const SkClipStack&);
83 virtual PlatformSurface beginPlatformPaint(); 84 virtual PlatformSurface beginPlatformPaint();
84 virtual bool IsVectorial(); 85 virtual bool IsVectorial();
85 86
86 protected: 87 protected:
87 explicit VectorPlatformDevice(PlatformSurface context, 88 explicit VectorPlatformDevice(PlatformSurface context,
88 const SkBitmap& bitmap); 89 const SkBitmap& bitmap);
89 90
90 private: 91 private:
91 // Apply paint's color in the context. 92 // Apply paint's color in the context.
92 void ApplyPaintColor(const SkPaint& paint); 93 void ApplyPaintColor(const SkPaint& paint);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 PlatformSurface context_; 130 PlatformSurface context_;
130 131
131 // Copy & assign are not supported. 132 // Copy & assign are not supported.
132 VectorPlatformDevice(const VectorPlatformDevice&); 133 VectorPlatformDevice(const VectorPlatformDevice&);
133 const VectorPlatformDevice& operator=(const VectorPlatformDevice&); 134 const VectorPlatformDevice& operator=(const VectorPlatformDevice&);
134 }; 135 };
135 136
136 } // namespace skia 137 } // namespace skia
137 138
138 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_LINUX_H_ 139 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_LINUX_H_
OLDNEW
« no previous file with comments | « skia/ext/bitmap_platform_device_win.cc ('k') | skia/ext/vector_platform_device_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698