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

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

Issue 259503002: Remove GraphicsContext::getClipBounds() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: remove the declaration Created 6 years, 8 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 | « no previous file | Source/platform/graphics/GraphicsContext.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 (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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 SkColor effectiveFillColor() const { return immutableState()->effectiveFillC olor(); } 128 SkColor effectiveFillColor() const { return immutableState()->effectiveFillC olor(); }
129 129
130 void setFillPattern(PassRefPtr<Pattern>); 130 void setFillPattern(PassRefPtr<Pattern>);
131 Pattern* fillPattern() const { return immutableState()->fillPattern(); } 131 Pattern* fillPattern() const { return immutableState()->fillPattern(); }
132 132
133 void setFillGradient(PassRefPtr<Gradient>); 133 void setFillGradient(PassRefPtr<Gradient>);
134 Gradient* fillGradient() const { return immutableState()->fillGradient(); } 134 Gradient* fillGradient() const { return immutableState()->fillGradient(); }
135 135
136 SkDrawLooper* drawLooper() const { return immutableState()->drawLooper(); } 136 SkDrawLooper* drawLooper() const { return immutableState()->drawLooper(); }
137 137
138 FloatRect getClipBounds() const;
139 bool getTransformedClipBounds(FloatRect* bounds) const; 138 bool getTransformedClipBounds(FloatRect* bounds) const;
140 SkMatrix getTotalMatrix() const; 139 SkMatrix getTotalMatrix() const;
141 140
142 void setShouldAntialias(bool antialias) { mutableState()->setShouldAntialias (antialias); } 141 void setShouldAntialias(bool antialias) { mutableState()->setShouldAntialias (antialias); }
143 bool shouldAntialias() const { return immutableState()->shouldAntialias(); } 142 bool shouldAntialias() const { return immutableState()->shouldAntialias(); }
144 143
145 // Disable the anti-aliasing optimization for scales/multiple-of-90-degrees 144 // Disable the anti-aliasing optimization for scales/multiple-of-90-degrees
146 // rotations of thin ("hairline") images. 145 // rotations of thin ("hairline") images.
147 // Note: This will only be reliable when the device pixel scale/ratio is 146 // Note: This will only be reliable when the device pixel scale/ratio is
148 // fixed (e.g. when drawing to context backed by an ImageBuffer). 147 // fixed (e.g. when drawing to context backed by an ImageBuffer).
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 bool m_updatingControlTints : 1; 514 bool m_updatingControlTints : 1;
516 bool m_accelerated : 1; 515 bool m_accelerated : 1;
517 bool m_isCertainlyOpaque : 1; 516 bool m_isCertainlyOpaque : 1;
518 bool m_printing : 1; 517 bool m_printing : 1;
519 bool m_antialiasHairlineImages : 1; 518 bool m_antialiasHairlineImages : 1;
520 }; 519 };
521 520
522 } // namespace WebCore 521 } // namespace WebCore
523 522
524 #endif // GraphicsContext_h 523 #endif // GraphicsContext_h
OLDNEW
« no previous file with comments | « no previous file | Source/platform/graphics/GraphicsContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698