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

Side by Side Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.h

Issue 1583103007: Use an up-to-date canvas size when building canvas filters (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused function Created 4 years, 11 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CanvasRenderingContext2DState_h 5 #ifndef CanvasRenderingContext2DState_h
6 #define CanvasRenderingContext2DState_h 6 #define CanvasRenderingContext2DState_h
7 7
8 #include "core/css/CSSFontSelectorClient.h" 8 #include "core/css/CSSFontSelectorClient.h"
9 #include "modules/canvas2d/ClipList.h" 9 #include "modules/canvas2d/ClipList.h"
10 #include "platform/fonts/Font.h" 10 #include "platform/fonts/Font.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 void setFont(const Font&, CSSFontSelector*); 78 void setFont(const Font&, CSSFontSelector*);
79 const Font& font() const; 79 const Font& font() const;
80 bool hasRealizedFont() const { return m_realizedFont; } 80 bool hasRealizedFont() const { return m_realizedFont; }
81 void setUnparsedFont(const String& font) { m_unparsedFont = font; } 81 void setUnparsedFont(const String& font) { m_unparsedFont = font; }
82 const String& unparsedFont() const { return m_unparsedFont; } 82 const String& unparsedFont() const { return m_unparsedFont; }
83 83
84 void setFilter(PassRefPtrWillBeRawPtr<CSSValue>); 84 void setFilter(PassRefPtrWillBeRawPtr<CSSValue>);
85 void setUnparsedFilter(const String& filterString) { m_unparsedFilter = filt erString; } 85 void setUnparsedFilter(const String& filterString) { m_unparsedFilter = filt erString; }
86 const String& unparsedFilter() const { return m_unparsedFilter; } 86 const String& unparsedFilter() const { return m_unparsedFilter; }
87 SkImageFilter* getFilter(Element*, const Font&) const; 87 SkImageFilter* getFilter(Element*, const Font&, IntSize canvasSize) const;
88 bool hasFilter() const { return m_filterValue; } 88 bool hasFilter() const { return m_filterValue; }
89 89
90 void setStrokeStyle(CanvasStyle*); 90 void setStrokeStyle(CanvasStyle*);
91 CanvasStyle* strokeStyle() const { return m_strokeStyle.get(); } 91 CanvasStyle* strokeStyle() const { return m_strokeStyle.get(); }
92 92
93 void setFillStyle(CanvasStyle*); 93 void setFillStyle(CanvasStyle*);
94 CanvasStyle* fillStyle() const { return m_fillStyle.get(); } 94 CanvasStyle* fillStyle() const { return m_fillStyle.get(); }
95 95
96 CanvasStyle* style(PaintType) const; 96 CanvasStyle* style(PaintType) const;
97 97
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 223
224 bool m_imageSmoothingEnabled; 224 bool m_imageSmoothingEnabled;
225 SkFilterQuality m_imageSmoothingQuality; 225 SkFilterQuality m_imageSmoothingQuality;
226 226
227 ClipList m_clipList; 227 ClipList m_clipList;
228 }; 228 };
229 229
230 } // blink 230 } // blink
231 231
232 #endif 232 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698