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

Side by Side Diff: Source/core/platform/graphics/Gradient.cpp

Issue 13843039: Absolutify paths to platform/graphics/skia/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
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 12 matching lines...) Expand all
23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28 #include "config.h" 28 #include "config.h"
29 #include "core/platform/graphics/Gradient.h" 29 #include "core/platform/graphics/Gradient.h"
30 30
31 #include "SkColorShader.h" 31 #include "SkColorShader.h"
32 #include "SkGradientShader.h" 32 #include "SkGradientShader.h"
33 #include "SkiaUtils.h"
34 #include "core/css/CSSParser.h" 33 #include "core/css/CSSParser.h"
35 #include "core/platform/graphics/Color.h" 34 #include "core/platform/graphics/Color.h"
36 #include "core/platform/graphics/FloatRect.h" 35 #include "core/platform/graphics/FloatRect.h"
37 #include "core/platform/graphics/GraphicsContext.h" 36 #include "core/platform/graphics/GraphicsContext.h"
37 #include "core/platform/graphics/skia/SkiaUtils.h"
38 #include <wtf/HashFunctions.h> 38 #include <wtf/HashFunctions.h>
39 #include <wtf/StringHasher.h> 39 #include <wtf/StringHasher.h>
40 #include <wtf/UnusedParam.h> 40 #include <wtf/UnusedParam.h>
41 41
42 using WTF::pairIntHash; 42 using WTF::pairIntHash;
43 43
44 namespace WebCore { 44 namespace WebCore {
45 45
46 Gradient::Gradient(const FloatPoint& p0, const FloatPoint& p1) 46 Gradient::Gradient(const FloatPoint& p0, const FloatPoint& p1)
47 : m_radial(false) 47 : m_radial(false)
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 return m_gradient; 425 return m_gradient;
426 } 426 }
427 427
428 void Gradient::fill(GraphicsContext* context, const FloatRect& rect) 428 void Gradient::fill(GraphicsContext* context, const FloatRect& rect)
429 { 429 {
430 context->setFillGradient(this); 430 context->setFillGradient(this);
431 context->fillRect(rect); 431 context->fillRect(rect);
432 } 432 }
433 433
434 } //namespace 434 } //namespace
OLDNEW
« no previous file with comments | « Source/core/platform/chromium/ScrollbarThemeChromiumWin.cpp ('k') | Source/core/platform/graphics/NativeImagePtr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698