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

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

Issue 551863004: Remove unnecessary 'const's (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/platform/graphics/GraphicsContext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 static void setRadii(SkVector*, IntSize, IntSize, IntSize, IntSize); 429 static void setRadii(SkVector*, IntSize, IntSize, IntSize, IntSize);
430 430
431 static PassRefPtr<SkColorFilter> WebCoreColorFilterToSkiaColorFilter(ColorFi lter); 431 static PassRefPtr<SkColorFilter> WebCoreColorFilterToSkiaColorFilter(ColorFi lter);
432 432
433 #if OS(MACOSX) 433 #if OS(MACOSX)
434 static inline int focusRingOutset(int offset) { return offset + 2; } 434 static inline int focusRingOutset(int offset) { return offset + 2; }
435 static inline int focusRingWidth(int width) { return width; } 435 static inline int focusRingWidth(int width) { return width; }
436 #else 436 #else
437 static inline int focusRingOutset(int offset) { return 0; } 437 static inline int focusRingOutset(int offset) { return 0; }
438 static inline int focusRingWidth(int width) { return 1; } 438 static inline int focusRingWidth(int width) { return 1; }
439 static const SkPMColor lineColors(int); 439 static SkPMColor lineColors(int);
440 static const SkPMColor antiColors1(int); 440 static SkPMColor antiColors1(int);
441 static const SkPMColor antiColors2(int); 441 static SkPMColor antiColors2(int);
442 static void draw1xMarker(SkBitmap*, int); 442 static void draw1xMarker(SkBitmap*, int);
443 static void draw2xMarker(SkBitmap*, int); 443 static void draw2xMarker(SkBitmap*, int);
444 #endif 444 #endif
445 445
446 // Helpers for drawing a focus ring (drawFocusRing) 446 // Helpers for drawing a focus ring (drawFocusRing)
447 float prepareFocusRingPaint(SkPaint&, const Color&, int width) const; 447 float prepareFocusRingPaint(SkPaint&, const Color&, int width) const;
448 void drawFocusRingPath(const SkPath&, const Color&, int width); 448 void drawFocusRingPath(const SkPath&, const Color&, int width);
449 void drawFocusRingRect(const SkRect&, const Color&, int width); 449 void drawFocusRingRect(const SkRect&, const Color&, int width);
450 450
451 451
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 bool m_accelerated : 1; 537 bool m_accelerated : 1;
538 bool m_isCertainlyOpaque : 1; 538 bool m_isCertainlyOpaque : 1;
539 bool m_printing : 1; 539 bool m_printing : 1;
540 bool m_antialiasHairlineImages : 1; 540 bool m_antialiasHairlineImages : 1;
541 bool m_shouldSmoothFonts : 1; 541 bool m_shouldSmoothFonts : 1;
542 }; 542 };
543 543
544 } // namespace blink 544 } // namespace blink
545 545
546 #endif // GraphicsContext_h 546 #endif // GraphicsContext_h
OLDNEW
« no previous file with comments | « no previous file | Source/platform/graphics/GraphicsContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698