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

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

Issue 216523002: Oilpan: Replace most of RefPtrs for Event objects with oilpan's transition types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 5321 matching lines...) Expand 10 before | Expand all | Expand 10 after
5332 break; 5332 break;
5333 } 5333 }
5334 VertexAttribValue& attribValue = m_vertexAttribValue[index]; 5334 VertexAttribValue& attribValue = m_vertexAttribValue[index];
5335 attribValue.initValue(); 5335 attribValue.initValue();
5336 for (int ii = 0; ii < expectedSize; ++ii) 5336 for (int ii = 0; ii < expectedSize; ++ii)
5337 attribValue.value[ii] = v[ii]; 5337 attribValue.value[ii] = v[ii];
5338 } 5338 }
5339 5339
5340 void WebGLRenderingContextBase::dispatchContextLostEvent(Timer<WebGLRenderingCon textBase>*) 5340 void WebGLRenderingContextBase::dispatchContextLostEvent(Timer<WebGLRenderingCon textBase>*)
5341 { 5341 {
5342 RefPtr<WebGLContextEvent> event = WebGLContextEvent::create(EventTypeNames:: webglcontextlost, false, true, ""); 5342 RefPtrWillBeRawPtr<WebGLContextEvent> event = WebGLContextEvent::create(Even tTypeNames::webglcontextlost, false, true, "");
5343 canvas()->dispatchEvent(event); 5343 canvas()->dispatchEvent(event);
5344 m_restoreAllowed = event->defaultPrevented(); 5344 m_restoreAllowed = event->defaultPrevented();
5345 deactivateContext(this, m_contextLostMode != RealLostContext && m_restoreAll owed); 5345 deactivateContext(this, m_contextLostMode != RealLostContext && m_restoreAll owed);
5346 if ((m_contextLostMode == RealLostContext || m_contextLostMode == AutoRecove rSyntheticLostContext) && m_restoreAllowed) 5346 if ((m_contextLostMode == RealLostContext || m_contextLostMode == AutoRecove rSyntheticLostContext) && m_restoreAllowed)
5347 m_restoreTimer.startOneShot(0, FROM_HERE); 5347 m_restoreTimer.startOneShot(0, FROM_HERE);
5348 } 5348 }
5349 5349
5350 void WebGLRenderingContextBase::maybeRestoreContext(Timer<WebGLRenderingContextB ase>*) 5350 void WebGLRenderingContextBase::maybeRestoreContext(Timer<WebGLRenderingContextB ase>*)
5351 { 5351 {
5352 ASSERT(isContextLost()); 5352 ASSERT(isContextLost());
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
5597 if (m_textureUnits[i].m_texture2DBinding 5597 if (m_textureUnits[i].m_texture2DBinding
5598 || m_textureUnits[i].m_textureCubeMapBinding) { 5598 || m_textureUnits[i].m_textureCubeMapBinding) {
5599 m_onePlusMaxNonDefaultTextureUnit = i + 1; 5599 m_onePlusMaxNonDefaultTextureUnit = i + 1;
5600 return; 5600 return;
5601 } 5601 }
5602 } 5602 }
5603 m_onePlusMaxNonDefaultTextureUnit = 0; 5603 m_onePlusMaxNonDefaultTextureUnit = 0;
5604 } 5604 }
5605 5605
5606 } // namespace WebCore 5606 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698