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

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

Issue 2023603003: Fix content scripts that use WebGL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@yukishiino-v8privateproperty-fix
Patch Set: Rebased. Created 4 years, 6 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) 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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 { 415 {
416 int index = static_cast<int>(drawBuffer - GL_DRAW_BUFFER0_EXT); 416 int index = static_cast<int>(drawBuffer - GL_DRAW_BUFFER0_EXT);
417 ASSERT(index >= 0); 417 ASSERT(index >= 0);
418 if (index < static_cast<int>(m_drawBuffers.size())) 418 if (index < static_cast<int>(m_drawBuffers.size()))
419 return m_drawBuffers[index]; 419 return m_drawBuffers[index];
420 if (drawBuffer == GL_DRAW_BUFFER0_EXT) 420 if (drawBuffer == GL_DRAW_BUFFER0_EXT)
421 return GL_COLOR_ATTACHMENT0; 421 return GL_COLOR_ATTACHMENT0;
422 return GL_NONE; 422 return GL_NONE;
423 } 423 }
424 424
425 ScopedPersistent<v8::Array>* WebGLFramebuffer::getPersistentCache()
426 {
427 return &m_attachmentWrappers;
428 }
429
430 DEFINE_TRACE(WebGLFramebuffer) 425 DEFINE_TRACE(WebGLFramebuffer)
431 { 426 {
432 visitor->trace(m_attachments); 427 visitor->trace(m_attachments);
433 WebGLContextObject::trace(visitor); 428 WebGLContextObject::trace(visitor);
434 } 429 }
435 430
436 } // namespace blink 431 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698