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

Side by Side Diff: Source/core/html/canvas/WebGLRenderingContext.cpp

Issue 14366040: Fixed spec compliance issues in WebGLRenderingContext. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased and retested. 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 | Annotate | Revision Log
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 3437 matching lines...) Expand 10 before | Expand all | Expand 10 after
3448 pixels[3] = 255; 3448 pixels[3] = 255;
3449 pixels += 4; 3449 pixels += 4;
3450 } 3450 }
3451 pixels += padding; 3451 pixels += padding;
3452 } 3452 }
3453 } 3453 }
3454 #endif 3454 #endif
3455 cleanupAfterGraphicsCall(false); 3455 cleanupAfterGraphicsCall(false);
3456 } 3456 }
3457 3457
3458 void WebGLRenderingContext::releaseShaderCompiler()
3459 {
3460 if (isContextLost())
3461 return;
3462 m_context->releaseShaderCompiler();
3463 cleanupAfterGraphicsCall(false);
3464 }
3465
3466 void WebGLRenderingContext::renderbufferStorage(GC3Denum target, GC3Denum intern alformat, GC3Dsizei width, GC3Dsizei height) 3458 void WebGLRenderingContext::renderbufferStorage(GC3Denum target, GC3Denum intern alformat, GC3Dsizei width, GC3Dsizei height)
3467 { 3459 {
3468 if (isContextLost()) 3460 if (isContextLost())
3469 return; 3461 return;
3470 if (target != GraphicsContext3D::RENDERBUFFER) { 3462 if (target != GraphicsContext3D::RENDERBUFFER) {
3471 synthesizeGLError(GraphicsContext3D::INVALID_ENUM, "renderbufferStorage" , "invalid target"); 3463 synthesizeGLError(GraphicsContext3D::INVALID_ENUM, "renderbufferStorage" , "invalid target");
3472 return; 3464 return;
3473 } 3465 }
3474 if (!m_renderbufferBinding || !m_renderbufferBinding->object()) { 3466 if (!m_renderbufferBinding || !m_renderbufferBinding->object()) {
3475 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, "renderbufferSto rage", "no bound renderbuffer"); 3467 synthesizeGLError(GraphicsContext3D::INVALID_OPERATION, "renderbufferSto rage", "no bound renderbuffer");
(...skipping 2520 matching lines...) Expand 10 before | Expand all | Expand 10 after
5996 bool WebGLRenderingContext::supportsDrawBuffers() 5988 bool WebGLRenderingContext::supportsDrawBuffers()
5997 { 5989 {
5998 if (!m_drawBuffersWebGLRequirementsChecked) { 5990 if (!m_drawBuffersWebGLRequirementsChecked) {
5999 m_drawBuffersWebGLRequirementsChecked = true; 5991 m_drawBuffersWebGLRequirementsChecked = true;
6000 m_drawBuffersSupported = EXTDrawBuffers::supported(this); 5992 m_drawBuffersSupported = EXTDrawBuffers::supported(this);
6001 } 5993 }
6002 return m_drawBuffersSupported; 5994 return m_drawBuffersSupported;
6003 } 5995 }
6004 5996
6005 } // namespace WebCore 5997 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/canvas/WebGLRenderingContext.h ('k') | Source/core/html/canvas/WebGLRenderingContext.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698