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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/GraphicsContext.h

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy Created 4 years, 9 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) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2008-2009 Torch Mobile, Inc. 3 * Copyright (C) 2008-2009 Torch Mobile, Inc.
4 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 FullyDisabled = 1 // Do absolutely minimal work to remove the cost of th e context from performance tests. 70 FullyDisabled = 1 // Do absolutely minimal work to remove the cost of th e context from performance tests.
71 }; 71 };
72 72
73 explicit GraphicsContext(PaintController&, DisabledMode = NothingDisabled, S kMetaData* = 0); 73 explicit GraphicsContext(PaintController&, DisabledMode = NothingDisabled, S kMetaData* = 0);
74 74
75 ~GraphicsContext(); 75 ~GraphicsContext();
76 76
77 SkCanvas* canvas() { return m_canvas; } 77 SkCanvas* canvas() { return m_canvas; }
78 const SkCanvas* canvas() const { return m_canvas; } 78 const SkCanvas* canvas() const { return m_canvas; }
79 79
80 PaintController& paintController() { return m_paintController; } 80 PaintController& getPaintController() { return m_paintController; }
81 81
82 bool contextDisabled() const { return m_disabledState; } 82 bool contextDisabled() const { return m_disabledState; }
83 83
84 // ---------- State management methods ----------------- 84 // ---------- State management methods -----------------
85 void save(); 85 void save();
86 void restore(); 86 void restore();
87 87
88 #if ENABLE(ASSERT) 88 #if ENABLE(ASSERT)
89 unsigned saveCount() const; 89 unsigned saveCount() const;
90 #endif 90 #endif
91 91
92 float strokeThickness() const { return immutableState()->strokeData().thickn ess(); } 92 float strokeThickness() const { return immutableState()->getStrokeData().thi ckness(); }
93 void setStrokeThickness(float thickness) { mutableState()->setStrokeThicknes s(thickness); } 93 void setStrokeThickness(float thickness) { mutableState()->setStrokeThicknes s(thickness); }
94 94
95 StrokeStyle getStrokeStyle() const { return immutableState()->strokeData().s tyle(); } 95 StrokeStyle getStrokeStyle() const { return immutableState()->getStrokeData( ).style(); }
96 void setStrokeStyle(StrokeStyle style) { mutableState()->setStrokeStyle(styl e); } 96 void setStrokeStyle(StrokeStyle style) { mutableState()->setStrokeStyle(styl e); }
97 97
98 Color strokeColor() const { return immutableState()->strokeColor(); } 98 Color strokeColor() const { return immutableState()->strokeColor(); }
99 void setStrokeColor(const Color& color) { mutableState()->setStrokeColor(col or); } 99 void setStrokeColor(const Color& color) { mutableState()->setStrokeColor(col or); }
100 100
101 Gradient* strokeGradient() const { return immutableState()->strokeGradient() ; } 101 Gradient* strokeGradient() const { return immutableState()->strokeGradient() ; }
102 void setStrokeGradient(PassRefPtr<Gradient>, float alpha = 1); 102 void setStrokeGradient(PassRefPtr<Gradient>, float alpha = 1);
103 103
104 void setLineCap(LineCap cap) { mutableState()->setLineCap(cap); } 104 void setLineCap(LineCap cap) { mutableState()->setLineCap(cap); }
105 void setLineDash(const DashArray& dashes, float dashOffset) { mutableState() ->setLineDash(dashes, dashOffset); } 105 void setLineDash(const DashArray& dashes, float dashOffset) { mutableState() ->setLineDash(dashes, dashOffset); }
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 371
372 float m_deviceScaleFactor; 372 float m_deviceScaleFactor;
373 373
374 unsigned m_printing : 1; 374 unsigned m_printing : 1;
375 unsigned m_hasMetaData : 1; 375 unsigned m_hasMetaData : 1;
376 }; 376 };
377 377
378 } // namespace blink 378 } // namespace blink
379 379
380 #endif // GraphicsContext_h 380 #endif // GraphicsContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698