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

Side by Side Diff: Source/core/platform/graphics/filters/custom/CustomFilterRenderer.cpp

Issue 14398007: Remove USE(3D_GRAPHICS) as it is always turned on. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 8 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
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 13 matching lines...) Expand all
24 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 24 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
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 33
34 #if USE(3D_GRAPHICS)
35 #include "core/platform/graphics/filters/custom/CustomFilterRenderer.h" 34 #include "core/platform/graphics/filters/custom/CustomFilterRenderer.h"
36 35
37 #include "core/platform/graphics/GraphicsContext3D.h" 36 #include "core/platform/graphics/GraphicsContext3D.h"
38 #include "core/platform/graphics/filters/custom/CustomFilterArrayParameter.h" 37 #include "core/platform/graphics/filters/custom/CustomFilterArrayParameter.h"
39 #include "core/platform/graphics/filters/custom/CustomFilterCompiledProgram.h" 38 #include "core/platform/graphics/filters/custom/CustomFilterCompiledProgram.h"
40 #include "core/platform/graphics/filters/custom/CustomFilterConstants.h" 39 #include "core/platform/graphics/filters/custom/CustomFilterConstants.h"
41 #include "core/platform/graphics/filters/custom/CustomFilterMesh.h" 40 #include "core/platform/graphics/filters/custom/CustomFilterMesh.h"
42 #include "core/platform/graphics/filters/custom/CustomFilterNumberParameter.h" 41 #include "core/platform/graphics/filters/custom/CustomFilterNumberParameter.h"
43 #include "core/platform/graphics/filters/custom/CustomFilterParameter.h" 42 #include "core/platform/graphics/filters/custom/CustomFilterParameter.h"
44 #include "core/platform/graphics/filters/custom/CustomFilterTransformParameter.h " 43 #include "core/platform/graphics/filters/custom/CustomFilterTransformParameter.h "
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 void CustomFilterRenderer::unbindVertexAttributes() 285 void CustomFilterRenderer::unbindVertexAttributes()
287 { 286 {
288 unbindVertexAttribute(m_compiledProgram->positionAttribLocation()); 287 unbindVertexAttribute(m_compiledProgram->positionAttribLocation());
289 unbindVertexAttribute(m_compiledProgram->texAttribLocation()); 288 unbindVertexAttribute(m_compiledProgram->texAttribLocation());
290 unbindVertexAttribute(m_compiledProgram->meshAttribLocation()); 289 unbindVertexAttribute(m_compiledProgram->meshAttribLocation());
291 if (m_meshType == MeshTypeDetached) 290 if (m_meshType == MeshTypeDetached)
292 unbindVertexAttribute(m_compiledProgram->triangleAttribLocation()); 291 unbindVertexAttribute(m_compiledProgram->triangleAttribLocation());
293 } 292 }
294 293
295 } // namespace WebCore 294 } // namespace WebCore
296
297 #endif // USE(3D_GRAPHICS)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698