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

Side by Side Diff: Source/core/platform/graphics/filters/custom/CustomFilterRenderer.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) 2012 Adobe Systems Incorporated. All rights reserved. 2 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved.
3 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. 3 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved.
4 * Copyright (C) 2012 Company 100, Inc. All rights reserved. 4 * Copyright (C) 2012 Company 100, Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above 10 * 1. Redistributions of source code must retain the above
(...skipping 14 matching lines...) Expand all
25 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
27 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 27 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
28 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE. 29 * SUCH DAMAGE.
30 */ 30 */
31 31
32 #include "config.h" 32 #include "config.h"
33 #include "core/platform/graphics/filters/custom/CustomFilterRenderer.h" 33 #include "core/platform/graphics/filters/custom/CustomFilterRenderer.h"
34 34
35 #include "core/platform/graphics/GraphicsContext3D.h"
36 #include "core/platform/graphics/filters/custom/CustomFilterCompiledProgram.h" 35 #include "core/platform/graphics/filters/custom/CustomFilterCompiledProgram.h"
37 #include "core/platform/graphics/filters/custom/CustomFilterMesh.h" 36 #include "core/platform/graphics/filters/custom/CustomFilterMesh.h"
37 #include "platform/graphics/GraphicsContext3D.h"
38 #include "platform/graphics/filters/custom/CustomFilterArrayParameter.h" 38 #include "platform/graphics/filters/custom/CustomFilterArrayParameter.h"
39 #include "platform/graphics/filters/custom/CustomFilterNumberParameter.h" 39 #include "platform/graphics/filters/custom/CustomFilterNumberParameter.h"
40 #include "platform/graphics/filters/custom/CustomFilterParameter.h" 40 #include "platform/graphics/filters/custom/CustomFilterParameter.h"
41 #include "platform/graphics/filters/custom/CustomFilterTransformParameter.h" 41 #include "platform/graphics/filters/custom/CustomFilterTransformParameter.h"
42 #include "platform/transforms/TransformationMatrix.h" 42 #include "platform/transforms/TransformationMatrix.h"
43 43
44 namespace WebCore { 44 namespace WebCore {
45 45
46 static void orthogonalProjectionMatrix(TransformationMatrix& matrix, float left, float right, float bottom, float top) 46 static void orthogonalProjectionMatrix(TransformationMatrix& matrix, float left, float right, float bottom, float top)
47 { 47 {
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 void CustomFilterRenderer::unbindVertexAttributes() 283 void CustomFilterRenderer::unbindVertexAttributes()
284 { 284 {
285 unbindVertexAttribute(m_compiledProgram->positionAttribLocation()); 285 unbindVertexAttribute(m_compiledProgram->positionAttribLocation());
286 unbindVertexAttribute(m_compiledProgram->texAttribLocation()); 286 unbindVertexAttribute(m_compiledProgram->texAttribLocation());
287 unbindVertexAttribute(m_compiledProgram->meshAttribLocation()); 287 unbindVertexAttribute(m_compiledProgram->meshAttribLocation());
288 if (m_meshType == MeshTypeDetached) 288 if (m_meshType == MeshTypeDetached)
289 unbindVertexAttribute(m_compiledProgram->triangleAttribLocation()); 289 unbindVertexAttribute(m_compiledProgram->triangleAttribLocation());
290 } 290 }
291 291
292 } // namespace WebCore 292 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698