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

Side by Side Diff: Source/platform/graphics/skia/SkiaUtils.h

Issue 526073004: Canvas: composite video on canvas correctly. (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 | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | public/platform/WebMediaPlayer.h » ('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) 2006,2007,2008, Google Inc. All rights reserved. 2 * Copyright (c) 2006,2007,2008, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "platform/transforms/AffineTransform.h" 44 #include "platform/transforms/AffineTransform.h"
45 #include "wtf/MathExtras.h" 45 #include "wtf/MathExtras.h"
46 46
47 class SkCanvas; 47 class SkCanvas;
48 class SkRegion; 48 class SkRegion;
49 49
50 namespace blink { 50 namespace blink {
51 51
52 class GraphicsContext; 52 class GraphicsContext;
53 53
54 SkXfermode::Mode WebCoreCompositeToSkiaComposite(CompositeOperator, WebBlendMode = WebBlendModeNormal); 54 SkXfermode::Mode PLATFORM_EXPORT WebCoreCompositeToSkiaComposite(CompositeOperat or, WebBlendMode = WebBlendModeNormal);
55 55
56 // move this guy into SkColor.h 56 // move this guy into SkColor.h
57 SkColor SkPMColorToColor(SkPMColor); 57 SkColor SkPMColorToColor(SkPMColor);
58 58
59 inline SkPaint::FilterLevel WebCoreInterpolationQualityToSkFilterLevel(Interpola tionQuality quality) 59 inline SkPaint::FilterLevel WebCoreInterpolationQualityToSkFilterLevel(Interpola tionQuality quality)
60 { 60 {
61 // FIXME: this reflects existing client mappings, but should probably 61 // FIXME: this reflects existing client mappings, but should probably
62 // be expanded to map higher level interpolations more accurately. 62 // be expanded to map higher level interpolations more accurately.
63 return quality != InterpolationNone ? SkPaint::kLow_FilterLevel : SkPaint::k None_FilterLevel; 63 return quality != InterpolationNone ? SkPaint::kLow_FilterLevel : SkPaint::k None_FilterLevel;
64 } 64 }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 float srcHeight, 105 float srcHeight,
106 float destWidth, 106 float destWidth,
107 float destHeight, 107 float destHeight,
108 bool isDataComplete = true); 108 bool isDataComplete = true);
109 109
110 bool shouldDrawAntiAliased(const GraphicsContext*, const SkRect& destRect); 110 bool shouldDrawAntiAliased(const GraphicsContext*, const SkRect& destRect);
111 111
112 } // namespace blink 112 } // namespace blink
113 113
114 #endif // SkiaUtils_h 114 #endif // SkiaUtils_h
OLDNEW
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | public/platform/WebMediaPlayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698