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

Side by Side Diff: src/gpu/GrStencilAndCoverTextContext.h

Issue 1191943002: Add useDFT field to SkDeviceProperties (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update to ToT Created 5 years, 6 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
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/GrStencilAndCoverTextContext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrStencilAndCoverTextContext_DEFINED 8 #ifndef GrStencilAndCoverTextContext_DEFINED
9 #define GrStencilAndCoverTextContext_DEFINED 9 #define GrStencilAndCoverTextContext_DEFINED
10 10
11 #include "GrTextContext.h" 11 #include "GrTextContext.h"
12 #include "GrDrawTarget.h" 12 #include "GrDrawTarget.h"
13 #include "GrStrokeInfo.h" 13 #include "GrStrokeInfo.h"
14 14
15 class GrTextStrike; 15 class GrTextStrike;
16 class GrPath; 16 class GrPath;
17 class GrPathRange; 17 class GrPathRange;
18 18
19 /* 19 /*
20 * This class implements text rendering using stencil and cover path rendering 20 * This class implements text rendering using stencil and cover path rendering
21 * (by the means of GrDrawTarget::drawPath). 21 * (by the means of GrDrawTarget::drawPath).
22 * This class exposes the functionality through GrTextContext interface. 22 * This class exposes the functionality through GrTextContext interface.
23 */ 23 */
24 class GrStencilAndCoverTextContext : public GrTextContext { 24 class GrStencilAndCoverTextContext : public GrTextContext {
25 public: 25 public:
26 static GrStencilAndCoverTextContext* Create(GrContext*, GrDrawContext*, 26 static GrStencilAndCoverTextContext* Create(GrContext*, GrDrawContext*,
27 const SkDeviceProperties&, bool fallbackUsesDFT); 27 const SkDeviceProperties&);
28 28
29 virtual ~GrStencilAndCoverTextContext(); 29 virtual ~GrStencilAndCoverTextContext();
30 30
31 private: 31 private:
32 static const int kGlyphBufferSize = 1024; 32 static const int kGlyphBufferSize = 1024;
33 33
34 enum RenderMode { 34 enum RenderMode {
35 /** 35 /**
36 * This is the render mode used by drawText(), which is mainly used by 36 * This is the render mode used by drawText(), which is mainly used by
37 * the Skia unit tests. It tries match the other text backends exactly, 37 * the Skia unit tests. It tries match the other text backends exactly,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 size_t textByteLength, RenderMode, const SkMatrix& viewMatrix, 87 size_t textByteLength, RenderMode, const SkMatrix& viewMatrix,
88 const SkIRect& regionClipBounds); 88 const SkIRect& regionClipBounds);
89 bool mapToFallbackContext(SkMatrix* inverse); 89 bool mapToFallbackContext(SkMatrix* inverse);
90 void appendGlyph(const SkGlyph&, const SkPoint&); 90 void appendGlyph(const SkGlyph&, const SkPoint&);
91 void flush(); 91 void flush();
92 void finish(); 92 void finish();
93 93
94 }; 94 };
95 95
96 #endif 96 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrDrawContext.cpp ('k') | src/gpu/GrStencilAndCoverTextContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698