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

Side by Side Diff: skia/ext/vector_platform_device_emf_win.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_canvas_unittest.cc ('k') | skia/ext/vector_platform_device_emf_win.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_EMF_WIN_H_ 5 #ifndef SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_
6 #define SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_ 6 #define SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 const SkPoint verts[], const SkPoint texs[], 66 const SkPoint verts[], const SkPoint texs[],
67 const SkColor colors[], SkXfermode* xmode, 67 const SkColor colors[], SkXfermode* xmode,
68 const uint16_t indices[], int indexCount, 68 const uint16_t indices[], int indexCount,
69 const SkPaint& paint) OVERRIDE; 69 const SkPaint& paint) OVERRIDE;
70 virtual void drawDevice(const SkDraw& draw, SkDevice*, int x, int y, 70 virtual void drawDevice(const SkDraw& draw, SkDevice*, int x, int y,
71 const SkPaint&) OVERRIDE; 71 const SkPaint&) OVERRIDE;
72 72
73 73
74 virtual void setMatrixClip(const SkMatrix& transform, const SkRegion& region, 74 virtual void setMatrixClip(const SkMatrix& transform, const SkRegion& region,
75 const SkClipStack&); 75 const SkClipStack&);
76 virtual void drawToHDC(HDC dc, int x, int y, const RECT* src_rect); 76 virtual void DrawToNativeContext(HDC dc, int x, int y, const RECT* src_rect);
77 virtual bool IsVectorial() { return true; } 77 virtual bool IsVectorial() { return true; }
78 78
79 void LoadClipRegion(); 79 void LoadClipRegion();
80 bool alpha_blend_used() const { return alpha_blend_used_; } 80 bool alpha_blend_used() const { return alpha_blend_used_; }
81 81
82 protected: 82 protected:
83 // Override from SkDevice (through PlatformDevice). 83 // Override from SkDevice (through PlatformDevice).
84 virtual SkDeviceFactory* onNewDeviceFactory(); 84 virtual SkDeviceFactory* onNewDeviceFactory();
85 85
86 private: 86 private:
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // True if AlphaBlend() was called during this print. 133 // True if AlphaBlend() was called during this print.
134 bool alpha_blend_used_; 134 bool alpha_blend_used_;
135 135
136 DISALLOW_COPY_AND_ASSIGN(VectorPlatformDeviceEmf); 136 DISALLOW_COPY_AND_ASSIGN(VectorPlatformDeviceEmf);
137 }; 137 };
138 138
139 } // namespace skia 139 } // namespace skia
140 140
141 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_ 141 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_
142 142
OLDNEW
« no previous file with comments | « skia/ext/vector_canvas_unittest.cc ('k') | skia/ext/vector_platform_device_emf_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698