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

Side by Side Diff: Source/core/rendering/FilterEffectRenderer.cpp

Issue 99103006: Moving GraphicsContext and dependencies from core to platform. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final patch - fixes Android Created 7 years 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 * Copyright (C) 2013 Google Inc. All rights reserved. 3 * Copyright (C) 2013 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 17 matching lines...) Expand all
28 28
29 #include "core/rendering/FilterEffectRenderer.h" 29 #include "core/rendering/FilterEffectRenderer.h"
30 30
31 #include "core/dom/Document.h" 31 #include "core/dom/Document.h"
32 #include "core/fetch/DocumentResource.h" 32 #include "core/fetch/DocumentResource.h"
33 #include "core/fetch/DocumentResourceReference.h" 33 #include "core/fetch/DocumentResourceReference.h"
34 #include "core/page/Page.h" 34 #include "core/page/Page.h"
35 #include "core/platform/graphics/filters/FEColorMatrix.h" 35 #include "core/platform/graphics/filters/FEColorMatrix.h"
36 #include "core/platform/graphics/filters/FEComponentTransfer.h" 36 #include "core/platform/graphics/filters/FEComponentTransfer.h"
37 #include "core/platform/graphics/filters/FEDropShadow.h" 37 #include "core/platform/graphics/filters/FEDropShadow.h"
38 #include "core/platform/graphics/filters/FEGaussianBlur.h"
39 #include "core/platform/graphics/filters/custom/CustomFilterGlobalContext.h" 38 #include "core/platform/graphics/filters/custom/CustomFilterGlobalContext.h"
40 #include "core/platform/graphics/filters/custom/CustomFilterValidatedProgram.h" 39 #include "core/platform/graphics/filters/custom/CustomFilterValidatedProgram.h"
41 #include "core/platform/graphics/filters/custom/FECustomFilter.h" 40 #include "core/platform/graphics/filters/custom/FECustomFilter.h"
42 #include "core/platform/graphics/filters/custom/ValidatedCustomFilterOperation.h " 41 #include "core/platform/graphics/filters/custom/ValidatedCustomFilterOperation.h "
43 #include "core/rendering/RenderLayer.h" 42 #include "core/rendering/RenderLayer.h"
44 #include "core/rendering/RenderView.h" 43 #include "core/rendering/RenderView.h"
45 #include "core/rendering/svg/ReferenceFilterBuilder.h" 44 #include "core/rendering/svg/ReferenceFilterBuilder.h"
46 #include "core/svg/SVGElement.h" 45 #include "core/svg/SVGElement.h"
47 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h" 46 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h"
48 #include "platform/FloatConversion.h" 47 #include "platform/FloatConversion.h"
49 #include "platform/LengthFunctions.h" 48 #include "platform/LengthFunctions.h"
50 #include "platform/graphics/ColorSpace.h" 49 #include "platform/graphics/ColorSpace.h"
50 #include "platform/graphics/filters/FEGaussianBlur.h"
51 #include "wtf/MathExtras.h" 51 #include "wtf/MathExtras.h"
52 #include <algorithm> 52 #include <algorithm>
53 53
54 namespace WebCore { 54 namespace WebCore {
55 55
56 static inline void endMatrixRow(Vector<float>& parameters) 56 static inline void endMatrixRow(Vector<float>& parameters)
57 { 57 {
58 parameters.append(0); 58 parameters.append(0);
59 parameters.append(0); 59 parameters.append(0);
60 } 60 }
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 // Get the filtered output and draw it in place. 426 // Get the filtered output and draw it in place.
427 m_savedGraphicsContext->drawImageBuffer(filter->output(), filter->outputRect (), CompositeSourceOver); 427 m_savedGraphicsContext->drawImageBuffer(filter->output(), filter->outputRect (), CompositeSourceOver);
428 428
429 filter->clearIntermediateResults(); 429 filter->clearIntermediateResults();
430 430
431 return m_savedGraphicsContext; 431 return m_savedGraphicsContext;
432 } 432 }
433 433
434 } // namespace WebCore 434 } // namespace WebCore
435 435
OLDNEW
« no previous file with comments | « Source/core/rendering/FilterEffectRenderer.h ('k') | Source/core/rendering/GraphicsContextAnnotator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698