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

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

Issue 177473003: Use SkLayerDrawLooper::Builder to construct SkLayerDrawLooper. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 PassRefPtr<DisplayList> endRecording(); 313 PassRefPtr<DisplayList> endRecording();
314 314
315 bool hasShadow() const; 315 bool hasShadow() const;
316 void setShadow(const FloatSize& offset, float blur, const Color&, 316 void setShadow(const FloatSize& offset, float blur, const Color&,
317 DrawLooper::ShadowTransformMode = DrawLooper::ShadowRespectsTransforms, 317 DrawLooper::ShadowTransformMode = DrawLooper::ShadowRespectsTransforms,
318 DrawLooper::ShadowAlphaMode = DrawLooper::ShadowRespectsAlpha); 318 DrawLooper::ShadowAlphaMode = DrawLooper::ShadowRespectsAlpha);
319 void clearShadow() { clearDrawLooper(); } 319 void clearShadow() { clearDrawLooper(); }
320 320
321 // It is assumed that this draw looper is used only for shadows 321 // It is assumed that this draw looper is used only for shadows
322 // (i.e. a draw looper is set if and only if there is a shadow). 322 // (i.e. a draw looper is set if and only if there is a shadow).
323 void setDrawLooper(const DrawLooper&); 323 void setDrawLooper(DrawLooper&);
jbroman 2014/02/24 15:23:33 Passing a non-const reference here seems odd. Espe
324 void clearDrawLooper(); 324 void clearDrawLooper();
325 325
326 void drawFocusRing(const Vector<IntRect>&, int width, int offset, const Colo r&); 326 void drawFocusRing(const Vector<IntRect>&, int width, int offset, const Colo r&);
327 void drawFocusRing(const Path&, int width, int offset, const Color&); 327 void drawFocusRing(const Path&, int width, int offset, const Color&);
328 328
329 enum Edge { 329 enum Edge {
330 NoEdge = 0, 330 NoEdge = 0,
331 TopEdge = 1 << 1, 331 TopEdge = 1 << 1,
332 RightEdge = 1 << 2, 332 RightEdge = 1 << 2,
333 BottomEdge = 1 << 3, 333 BottomEdge = 1 << 3,
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 // FIXME: Make this go away: crbug.com/236892 509 // FIXME: Make this go away: crbug.com/236892
510 bool m_updatingControlTints : 1; 510 bool m_updatingControlTints : 1;
511 bool m_accelerated : 1; 511 bool m_accelerated : 1;
512 bool m_isCertainlyOpaque : 1; 512 bool m_isCertainlyOpaque : 1;
513 bool m_printing : 1; 513 bool m_printing : 1;
514 }; 514 };
515 515
516 } // namespace WebCore 516 } // namespace WebCore
517 517
518 #endif // GraphicsContext_h 518 #endif // GraphicsContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698