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

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: 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 * 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 CustomFilterGlobalContext* globalContext = document->renderView()->customFil terGlobalContext(); 89 CustomFilterGlobalContext* globalContext = document->renderView()->customFil terGlobalContext();
90 globalContext->prepareContextIfNeeded(document->view()->hostWindow()); 90 globalContext->prepareContextIfNeeded(document->view()->hostWindow());
91 if (!globalContext->context()) 91 if (!globalContext->context())
92 return 0; 92 return 0;
93 93
94 return FECustomFilter::create(filter, globalContext->context(), operation->v alidatedProgram(), operation->parameters(), 94 return FECustomFilter::create(filter, globalContext->context(), operation->v alidatedProgram(), operation->parameters(),
95 operation->meshRows(), operation->meshColumns(), operation->meshType()) ; 95 operation->meshRows(), operation->meshColumns(), operation->meshType()) ;
96 } 96 }
97 97
98 FilterEffectRenderer::FilterEffectRenderer() 98 FilterEffectRenderer::FilterEffectRenderer()
99 : m_graphicsBufferAttached(false) 99 : Filter(AffineTransform())
100 , m_graphicsBufferAttached(false)
100 , m_hasFilterThatMovesPixels(false) 101 , m_hasFilterThatMovesPixels(false)
101 , m_hasCustomShaderFilter(false) 102 , m_hasCustomShaderFilter(false)
102 { 103 {
103 setFilterResolution(FloatSize(1, 1)); 104 setFilterResolution(FloatSize(1, 1));
104 m_sourceGraphic = SourceGraphic::create(this); 105 m_sourceGraphic = SourceGraphic::create(this);
105 } 106 }
106 107
107 FilterEffectRenderer::~FilterEffectRenderer() 108 FilterEffectRenderer::~FilterEffectRenderer()
108 { 109 {
109 } 110 }
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 496
496 m_savedGraphicsContext->drawImageBuffer(filter->output(), m_renderLayer->ren derer()->style()->colorSpace(), pixelSnappedIntRect(destRect), CompositeSourceOv er); 497 m_savedGraphicsContext->drawImageBuffer(filter->output(), m_renderLayer->ren derer()->style()->colorSpace(), pixelSnappedIntRect(destRect), CompositeSourceOv er);
497 498
498 filter->clearIntermediateResults(); 499 filter->clearIntermediateResults();
499 500
500 return m_savedGraphicsContext; 501 return m_savedGraphicsContext;
501 } 502 }
502 503
503 } // namespace WebCore 504 } // namespace WebCore
504 505
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698