| OLD | NEW |
| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 "lost."); | 222 "lost."); |
| 223 removedContexts++; | 223 removedContexts++; |
| 224 } | 224 } |
| 225 | 225 |
| 226 ASSERT(!context->isContextLost()); | 226 ASSERT(!context->isContextLost()); |
| 227 activeContexts().insert(context); | 227 activeContexts().insert(context); |
| 228 } | 228 } |
| 229 | 229 |
| 230 void WebGLRenderingContextBase::deactivateContext( | 230 void WebGLRenderingContextBase::deactivateContext( |
| 231 WebGLRenderingContextBase* context) { | 231 WebGLRenderingContextBase* context) { |
| 232 activeContexts().remove(context); | 232 activeContexts().erase(context); |
| 233 } | 233 } |
| 234 | 234 |
| 235 void WebGLRenderingContextBase::addToEvictedList( | 235 void WebGLRenderingContextBase::addToEvictedList( |
| 236 WebGLRenderingContextBase* context) { | 236 WebGLRenderingContextBase* context) { |
| 237 static int generation = 0; | 237 static int generation = 0; |
| 238 forciblyEvictedContexts().set(context, generation++); | 238 forciblyEvictedContexts().set(context, generation++); |
| 239 } | 239 } |
| 240 | 240 |
| 241 void WebGLRenderingContextBase::removeFromEvictedList( | 241 void WebGLRenderingContextBase::removeFromEvictedList( |
| 242 WebGLRenderingContextBase* context) { | 242 WebGLRenderingContextBase* context) { |
| (...skipping 7561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7804 | 7804 |
| 7805 void WebGLRenderingContextBase::getHTMLOrOffscreenCanvas( | 7805 void WebGLRenderingContextBase::getHTMLOrOffscreenCanvas( |
| 7806 HTMLCanvasElementOrOffscreenCanvas& result) const { | 7806 HTMLCanvasElementOrOffscreenCanvas& result) const { |
| 7807 if (canvas()) | 7807 if (canvas()) |
| 7808 result.setHTMLCanvasElement(canvas()); | 7808 result.setHTMLCanvasElement(canvas()); |
| 7809 else | 7809 else |
| 7810 result.setOffscreenCanvas(offscreenCanvas()); | 7810 result.setOffscreenCanvas(offscreenCanvas()); |
| 7811 } | 7811 } |
| 7812 | 7812 |
| 7813 } // namespace blink | 7813 } // namespace blink |
| OLD | NEW |