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

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

Issue 7019013: Removal of dependencies on PlatformDevice classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Syncing merge conflicts. 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 | « skia/ext/vector_platform_device_emf_win.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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 const SkPaint& paint); 77 const SkPaint& paint);
78 virtual void drawVertices(const SkDraw& draw, SkCanvas::VertexMode, 78 virtual void drawVertices(const SkDraw& draw, SkCanvas::VertexMode,
79 int vertexCount, const SkPoint verts[], 79 int vertexCount, const SkPoint verts[],
80 const SkPoint texs[], const SkColor colors[], 80 const SkPoint texs[], const SkColor colors[],
81 SkXfermode* xmode, const uint16_t indices[], 81 SkXfermode* xmode, const uint16_t indices[],
82 int indexCount, const SkPaint& paint); 82 int indexCount, const SkPaint& paint);
83 virtual void drawDevice(const SkDraw& draw, SkDevice*, int x, int y, 83 virtual void drawDevice(const SkDraw& draw, SkDevice*, int x, int y,
84 const SkPaint&); 84 const SkPaint&);
85 85
86 #if defined(OS_WIN) 86 #if defined(OS_WIN)
87 virtual void drawToHDC(HDC dc, int x, int y, const RECT* src_rect); 87 virtual void DrawToNativeContext(HDC dc, int x, int y, const RECT* src_rect);
88 #endif 88 #endif
89 89
90 protected: 90 protected:
91 // Override from SkDevice (through PlatformDevice). 91 // Override from SkDevice (through PlatformDevice).
92 virtual SkDeviceFactory* onNewDeviceFactory(); 92 virtual SkDeviceFactory* onNewDeviceFactory();
93 93
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 | « skia/ext/vector_platform_device_emf_win.cc ('k') | skia/ext/vector_platform_device_skia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698