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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp

Issue 1412613004: Set attachment for bound framebuffer in FramebufferTextureLayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix WebGLTextureAttachment::attach Created 5 years, 1 month 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
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 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 2459 matching lines...) Expand 10 before | Expand all | Expand 10 after
2470 break; 2470 break;
2471 case GL_DEPTH_ATTACHMENT: 2471 case GL_DEPTH_ATTACHMENT:
2472 webContext()->framebufferTexture2D(target, attachment, textarget, textur eObject, level); 2472 webContext()->framebufferTexture2D(target, attachment, textarget, textur eObject, level);
2473 break; 2473 break;
2474 case GL_STENCIL_ATTACHMENT: 2474 case GL_STENCIL_ATTACHMENT:
2475 webContext()->framebufferTexture2D(target, attachment, textarget, textur eObject, level); 2475 webContext()->framebufferTexture2D(target, attachment, textarget, textur eObject, level);
2476 break; 2476 break;
2477 default: 2477 default:
2478 webContext()->framebufferTexture2D(target, attachment, textarget, textur eObject, level); 2478 webContext()->framebufferTexture2D(target, attachment, textarget, textur eObject, level);
2479 } 2479 }
2480 framebufferBinding->setAttachmentForBoundFramebuffer(target, attachment, tex target, texture, level); 2480 framebufferBinding->setAttachmentForBoundFramebuffer(target, attachment, tex target, texture, level, 0);
2481 applyStencilTest(); 2481 applyStencilTest();
2482 preserveObjectWrapper(scriptState, framebufferBinding, "texture2d", attachme nt, texture); 2482 preserveObjectWrapper(scriptState, framebufferBinding, "texture2d", attachme nt, texture);
2483 } 2483 }
2484 2484
2485 void WebGLRenderingContextBase::frontFace(GLenum mode) 2485 void WebGLRenderingContextBase::frontFace(GLenum mode)
2486 { 2486 {
2487 if (isContextLost()) 2487 if (isContextLost())
2488 return; 2488 return;
2489 switch (mode) { 2489 switch (mode) {
2490 case GL_CW: 2490 case GL_CW:
(...skipping 4424 matching lines...) Expand 10 before | Expand all | Expand 10 after
6915 6915
6916 return totalBytesPerPixel; 6916 return totalBytesPerPixel;
6917 } 6917 }
6918 6918
6919 DrawingBuffer* WebGLRenderingContextBase::drawingBuffer() const 6919 DrawingBuffer* WebGLRenderingContextBase::drawingBuffer() const
6920 { 6920 {
6921 return m_drawingBuffer.get(); 6921 return m_drawingBuffer.get();
6922 } 6922 }
6923 6923
6924 } // namespace blink 6924 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webgl/WebGLFramebuffer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698