| 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 void setUpdatingControlTints(bool updatingTints) { m_updatingControlTints =
updatingTints; } | 197 void setUpdatingControlTints(bool updatingTints) { m_updatingControlTints =
updatingTints; } |
| 198 | 198 |
| 199 AnnotationModeFlags annotationMode() const { return m_annotationMode; } | 199 AnnotationModeFlags annotationMode() const { return m_annotationMode; } |
| 200 void setAnnotationMode(const AnnotationModeFlags mode) { m_annotationMode =
mode; } | 200 void setAnnotationMode(const AnnotationModeFlags mode) { m_annotationMode =
mode; } |
| 201 | 201 |
| 202 SkColorFilter* colorFilter(); | 202 SkColorFilter* colorFilter(); |
| 203 void setColorFilter(ColorFilter); | 203 void setColorFilter(ColorFilter); |
| 204 // ---------- End state management methods ----------------- | 204 // ---------- End state management methods ----------------- |
| 205 | 205 |
| 206 // Get the contents of the image buffer | 206 // Get the contents of the image buffer |
| 207 bool readPixels(SkBitmap*, int, int, SkCanvas::Config8888 = SkCanvas::kNativ
e_Premul_Config8888); | 207 bool readPixels(const SkImageInfo&, void* pixels, size_t rowBytes, int x, in
t y); |
| 208 | 208 |
| 209 // Sets up the paint for the current fill style. | 209 // Sets up the paint for the current fill style. |
| 210 void setupPaintForFilling(SkPaint*) const; | 210 void setupPaintForFilling(SkPaint*) const; |
| 211 | 211 |
| 212 // Sets up the paint for the current stroke style. | 212 // Sets up the paint for the current stroke style. |
| 213 void setupPaintForStroking(SkPaint*) const; | 213 void setupPaintForStroking(SkPaint*) const; |
| 214 | 214 |
| 215 // These draw methods will do both stroking and filling. | 215 // These draw methods will do both stroking and filling. |
| 216 // FIXME: ...except drawRect(), which fills properly but always strokes | 216 // FIXME: ...except drawRect(), which fills properly but always strokes |
| 217 // using a 1-pixel stroke inset from the rect borders (of the correct | 217 // using a 1-pixel stroke inset from the rect borders (of the correct |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 // FIXME: Make this go away: crbug.com/236892 | 501 // FIXME: Make this go away: crbug.com/236892 |
| 502 bool m_updatingControlTints : 1; | 502 bool m_updatingControlTints : 1; |
| 503 bool m_accelerated : 1; | 503 bool m_accelerated : 1; |
| 504 bool m_isCertainlyOpaque : 1; | 504 bool m_isCertainlyOpaque : 1; |
| 505 bool m_printing : 1; | 505 bool m_printing : 1; |
| 506 }; | 506 }; |
| 507 | 507 |
| 508 } // namespace WebCore | 508 } // namespace WebCore |
| 509 | 509 |
| 510 #endif // GraphicsContext_h | 510 #endif // GraphicsContext_h |
| OLD | NEW |