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

Side by Side Diff: Source/platform/graphics/CrossfadeGeneratedImage.cpp

Issue 400543004: Rename WebCore namespace to blink in Platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 14 matching lines...) Expand all
25 25
26 #include "config.h" 26 #include "config.h"
27 #include "platform/graphics/CrossfadeGeneratedImage.h" 27 #include "platform/graphics/CrossfadeGeneratedImage.h"
28 28
29 #include "platform/geometry/FloatRect.h" 29 #include "platform/geometry/FloatRect.h"
30 #include "platform/graphics/GraphicsContextStateSaver.h" 30 #include "platform/graphics/GraphicsContextStateSaver.h"
31 #include "platform/graphics/ImageBuffer.h" 31 #include "platform/graphics/ImageBuffer.h"
32 32
33 using namespace std; 33 using namespace std;
34 34
35 namespace WebCore { 35 namespace blink {
36 36
37 CrossfadeGeneratedImage::CrossfadeGeneratedImage(Image* fromImage, Image* toImag e, float percentage, IntSize crossfadeSize, const IntSize& size) 37 CrossfadeGeneratedImage::CrossfadeGeneratedImage(Image* fromImage, Image* toImag e, float percentage, IntSize crossfadeSize, const IntSize& size)
38 : m_fromImage(fromImage) 38 : m_fromImage(fromImage)
39 , m_toImage(toImage) 39 , m_toImage(toImage)
40 , m_percentage(percentage) 40 , m_percentage(percentage)
41 , m_crossfadeSize(crossfadeSize) 41 , m_crossfadeSize(crossfadeSize)
42 { 42 {
43 m_size = size; 43 m_size = size;
44 } 44 }
45 45
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 // Fill with the cross-faded image. 106 // Fill with the cross-faded image.
107 GraphicsContext* graphicsContext = imageBuffer->context(); 107 GraphicsContext* graphicsContext = imageBuffer->context();
108 drawCrossfade(graphicsContext); 108 drawCrossfade(graphicsContext);
109 109
110 // Tile the image buffer into the context. 110 // Tile the image buffer into the context.
111 imageBuffer->drawPattern(context, srcRect, scale, phase, compositeOp, dstRec t, blendMode, repeatSpacing); 111 imageBuffer->drawPattern(context, srcRect, scale, phase, compositeOp, dstRec t, blendMode, repeatSpacing);
112 } 112 }
113 113
114 } 114 }
OLDNEW
« no previous file with comments | « Source/platform/graphics/CrossfadeGeneratedImage.h ('k') | Source/platform/graphics/DecodingImageGenerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698