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

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

Issue 1983863002: Inflate dirty rect by 1 pixel on a high DPI display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move layout test to ManualTests Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv ed.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 } 79 }
80 CanvasRenderingContext::ContextType getContextType() const override { re turn CanvasRenderingContext::Context2d; } 80 CanvasRenderingContext::ContextType getContextType() const override { re turn CanvasRenderingContext::Context2d; }
81 }; 81 };
82 82
83 ~CanvasRenderingContext2D() override; 83 ~CanvasRenderingContext2D() override;
84 84
85 void setCanvasGetContextResult(RenderingContext&) final; 85 void setCanvasGetContextResult(RenderingContext&) final;
86 86
87 bool isContextLost() const override; 87 bool isContextLost() const override;
88 88
89 bool shouldAntialias() const override;
89 void setShouldAntialias(bool) override; 90 void setShouldAntialias(bool) override;
90 91
91 void scrollPathIntoView(); 92 void scrollPathIntoView();
92 void scrollPathIntoView(Path2D*); 93 void scrollPathIntoView(Path2D*);
93 94
94 void clearRect(double x, double y, double width, double height) override; 95 void clearRect(double x, double y, double width, double height) override;
95 96
96 void reset() override; 97 void reset() override;
97 98
98 String font() const; 99 String font() const;
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle; 219 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle;
219 bool m_pruneLocalFontCacheScheduled; 220 bool m_pruneLocalFontCacheScheduled;
220 ListHashSet<String> m_fontLRUList; 221 ListHashSet<String> m_fontLRUList;
221 }; 222 };
222 223
223 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d()); 224 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d());
224 225
225 } // namespace blink 226 } // namespace blink
226 227
227 #endif // CanvasRenderingContext2D_h 228 #endif // CanvasRenderingContext2D_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698