Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 217 // possible quality. | 217 // possible quality. |
| 218 bool printing() const { return m_printing; } | 218 bool printing() const { return m_printing; } |
| 219 void setPrinting(bool printing) { m_printing = printing; } | 219 void setPrinting(bool printing) { m_printing = printing; } |
| 220 | 220 |
| 221 bool isAccelerated() const { return m_accelerated; } | 221 bool isAccelerated() const { return m_accelerated; } |
| 222 void setAccelerated(bool accelerated) { m_accelerated = accelerated; } | 222 void setAccelerated(bool accelerated) { m_accelerated = accelerated; } |
| 223 | 223 |
| 224 // The opaque region is empty until tracking is turned on. | 224 // The opaque region is empty until tracking is turned on. |
| 225 // It is never clerared by the context. | 225 // It is never clerared by the context. |
| 226 void setTrackOpaqueRegion(bool track) { m_trackOpaqueRegion = track; } | 226 void setTrackOpaqueRegion(bool track) { m_trackOpaqueRegion = track; } |
| 227 void setTreatOverwriteAsOpaque(bool value) { m_opaqueRegion.setTreatOverwrit eAsOpaque(value); } | |
|
Stephen White
2014/07/25 19:29:06
As discussed, let's make this a setter that specif
| |
| 227 const OpaqueRegionSkia& opaqueRegion() const { return m_opaqueRegion; } | 228 const OpaqueRegionSkia& opaqueRegion() const { return m_opaqueRegion; } |
| 228 | 229 |
| 229 // The text region is empty until tracking is turned on. | 230 // The text region is empty until tracking is turned on. |
| 230 // It is never clerared by the context. | 231 // It is never clerared by the context. |
| 231 void setTrackTextRegion(bool track) { m_trackTextRegion = track; } | 232 void setTrackTextRegion(bool track) { m_trackTextRegion = track; } |
| 232 const SkRect& textRegion() const { return m_textRegion; } | 233 const SkRect& textRegion() const { return m_textRegion; } |
| 233 | 234 |
| 234 bool updatingControlTints() const { return m_updatingControlTints; } | 235 bool updatingControlTints() const { return m_updatingControlTints; } |
| 235 void setUpdatingControlTints(bool updatingTints) { m_updatingControlTints = updatingTints; } | 236 void setUpdatingControlTints(bool updatingTints) { m_updatingControlTints = updatingTints; } |
| 236 | 237 |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 537 bool m_updatingControlTints : 1; | 538 bool m_updatingControlTints : 1; |
| 538 bool m_accelerated : 1; | 539 bool m_accelerated : 1; |
| 539 bool m_isCertainlyOpaque : 1; | 540 bool m_isCertainlyOpaque : 1; |
| 540 bool m_printing : 1; | 541 bool m_printing : 1; |
| 541 bool m_antialiasHairlineImages : 1; | 542 bool m_antialiasHairlineImages : 1; |
| 542 }; | 543 }; |
| 543 | 544 |
| 544 } // namespace blink | 545 } // namespace blink |
| 545 | 546 |
| 546 #endif // GraphicsContext_h | 547 #endif // GraphicsContext_h |
| OLD | NEW |