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

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

Issue 14701012: Refactor m_absoluteTransform out of SVGFilter and into base class. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix copyrights 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) 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 * 4 *
4 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
6 * are met: 7 * are met:
7 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 11 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution. 12 * documentation and/or other materials provided with the distribution.
12 * 13 *
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 CustomFilterGlobalContext* globalContext = document->renderView()->customFil terGlobalContext(); 90 CustomFilterGlobalContext* globalContext = document->renderView()->customFil terGlobalContext();
90 globalContext->prepareContextIfNeeded(document->view()->hostWindow()); 91 globalContext->prepareContextIfNeeded(document->view()->hostWindow());
91 if (!globalContext->context()) 92 if (!globalContext->context())
92 return 0; 93 return 0;
93 94
94 return FECustomFilter::create(filter, globalContext->context(), operation->v alidatedProgram(), operation->parameters(), 95 return FECustomFilter::create(filter, globalContext->context(), operation->v alidatedProgram(), operation->parameters(),
95 operation->meshRows(), operation->meshColumns(), operation->meshType()) ; 96 operation->meshRows(), operation->meshColumns(), operation->meshType()) ;
96 } 97 }
97 98
98 FilterEffectRenderer::FilterEffectRenderer() 99 FilterEffectRenderer::FilterEffectRenderer()
99 : m_graphicsBufferAttached(false) 100 : Filter(AffineTransform())
101 , m_graphicsBufferAttached(false)
100 , m_hasFilterThatMovesPixels(false) 102 , m_hasFilterThatMovesPixels(false)
101 , m_hasCustomShaderFilter(false) 103 , m_hasCustomShaderFilter(false)
102 { 104 {
103 setFilterResolution(FloatSize(1, 1)); 105 setFilterResolution(FloatSize(1, 1));
104 m_sourceGraphic = SourceGraphic::create(this); 106 m_sourceGraphic = SourceGraphic::create(this);
105 } 107 }
106 108
107 FilterEffectRenderer::~FilterEffectRenderer() 109 FilterEffectRenderer::~FilterEffectRenderer()
108 { 110 {
109 } 111 }
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 497
496 m_savedGraphicsContext->drawImageBuffer(filter->output(), m_renderLayer->ren derer()->style()->colorSpace(), pixelSnappedIntRect(destRect), CompositeSourceOv er); 498 m_savedGraphicsContext->drawImageBuffer(filter->output(), m_renderLayer->ren derer()->style()->colorSpace(), pixelSnappedIntRect(destRect), CompositeSourceOv er);
497 499
498 filter->clearIntermediateResults(); 500 filter->clearIntermediateResults();
499 501
500 return m_savedGraphicsContext; 502 return m_savedGraphicsContext;
501 } 503 }
502 504
503 } // namespace WebCore 505 } // namespace WebCore
504 506
OLDNEW
« no previous file with comments | « Source/core/platform/graphics/filters/Filter.h ('k') | Source/core/svg/graphics/filters/SVGFEImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698