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

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

Issue 23947005: Implement CSS luminance masking using skia SkLumaMaskXfermode class. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 156
157 void setAlpha(float alpha) { m_state->m_alpha = alpha; } 157 void setAlpha(float alpha) { m_state->m_alpha = alpha; }
158 158
159 void setImageInterpolationQuality(InterpolationQuality quality) { m_state->m _interpolationQuality = quality; } 159 void setImageInterpolationQuality(InterpolationQuality quality) { m_state->m _interpolationQuality = quality; }
160 InterpolationQuality imageInterpolationQuality() const { return m_state->m_i nterpolationQuality; } 160 InterpolationQuality imageInterpolationQuality() const { return m_state->m_i nterpolationQuality; }
161 161
162 void setCompositeOperation(CompositeOperator, BlendMode = BlendModeNormal); 162 void setCompositeOperation(CompositeOperator, BlendMode = BlendModeNormal);
163 CompositeOperator compositeOperation() const { return m_state->m_compositeOp erator; } 163 CompositeOperator compositeOperation() const { return m_state->m_compositeOp erator; }
164 BlendMode blendModeOperation() const { return m_state->m_blendMode; } 164 BlendMode blendModeOperation() const { return m_state->m_blendMode; }
165 165
166 void setDrawLuminanceMask(bool drawLuminanceMask) { m_state->m_drawLuminance Mask = drawLuminanceMask; }
167 bool drawLuminanceMask() const { return m_state->m_drawLuminanceMask; }
168
166 // Change the way document markers are rendered. 169 // Change the way document markers are rendered.
167 // Any deviceScaleFactor higher than 1.5 is enough to justify setting this f lag. 170 // Any deviceScaleFactor higher than 1.5 is enough to justify setting this f lag.
168 void setUseHighResMarkers(bool isHighRes) { m_useHighResMarker = isHighRes; } 171 void setUseHighResMarkers(bool isHighRes) { m_useHighResMarker = isHighRes; }
169 172
170 // If true we are (most likely) rendering to a web page and the 173 // If true we are (most likely) rendering to a web page and the
171 // canvas has been prepared with an opaque background. If false, 174 // canvas has been prepared with an opaque background. If false,
172 // the canvas may havbe transparency (as is the case when rendering 175 // the canvas may havbe transparency (as is the case when rendering
173 // to a canvas object). 176 // to a canvas object).
174 void setCertainlyOpaque(bool isOpaque) { m_isCertainlyOpaque = isOpaque; } 177 void setCertainlyOpaque(bool isOpaque) { m_isCertainlyOpaque = isOpaque; }
175 bool isCertainlyOpaque() const { return m_isCertainlyOpaque; } 178 bool isCertainlyOpaque() const { return m_isCertainlyOpaque; }
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 // FIXME: Make this go away: crbug.com/236892 469 // FIXME: Make this go away: crbug.com/236892
467 bool m_updatingControlTints : 1; 470 bool m_updatingControlTints : 1;
468 bool m_accelerated : 1; 471 bool m_accelerated : 1;
469 bool m_isCertainlyOpaque : 1; 472 bool m_isCertainlyOpaque : 1;
470 bool m_printing : 1; 473 bool m_printing : 1;
471 }; 474 };
472 475
473 } // namespace WebCore 476 } // namespace WebCore
474 477
475 #endif // GraphicsContext_h 478 #endif // GraphicsContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698