| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 #include "platform/RuntimeEnabledFeatures.h" | 90 #include "platform/RuntimeEnabledFeatures.h" |
| 91 #include "platform/geometry/IntSize.h" | 91 #include "platform/geometry/IntSize.h" |
| 92 #include "platform/graphics/GraphicsContext.h" | 92 #include "platform/graphics/GraphicsContext.h" |
| 93 #include "platform/graphics/UnacceleratedImageBufferSurface.h" | 93 #include "platform/graphics/UnacceleratedImageBufferSurface.h" |
| 94 #include "platform/graphics/gpu/AcceleratedImageBufferSurface.h" | 94 #include "platform/graphics/gpu/AcceleratedImageBufferSurface.h" |
| 95 #include "platform/graphics/gpu/DrawingBuffer.h" | 95 #include "platform/graphics/gpu/DrawingBuffer.h" |
| 96 #include "public/platform/Platform.h" | 96 #include "public/platform/Platform.h" |
| 97 #include "public/platform/WebGraphicsContext3D.h" | 97 #include "public/platform/WebGraphicsContext3D.h" |
| 98 #include "public/platform/WebGraphicsContext3DProvider.h" | 98 #include "public/platform/WebGraphicsContext3DProvider.h" |
| 99 #include "public/platform/callback/WebClosure.h" | 99 #include "public/platform/callback/WebClosure.h" |
| 100 #include "wtf/ArrayBufferContents.h" | |
| 101 #include "wtf/Functional.h" | 100 #include "wtf/Functional.h" |
| 102 #include "wtf/PassOwnPtr.h" | 101 #include "wtf/PassOwnPtr.h" |
| 103 #include "wtf/text/StringBuilder.h" | 102 #include "wtf/text/StringBuilder.h" |
| 104 #include "wtf/text/StringUTF8Adaptor.h" | 103 #include "wtf/text/StringUTF8Adaptor.h" |
| 104 #include "wtf/typed_arrays/ArrayBufferContents.h" |
| 105 | 105 |
| 106 namespace blink { | 106 namespace blink { |
| 107 | 107 |
| 108 namespace { | 108 namespace { |
| 109 | 109 |
| 110 const double secondsBetweenRestoreAttempts = 1.0; | 110 const double secondsBetweenRestoreAttempts = 1.0; |
| 111 const int maxGLErrorsAllowedToConsole = 256; | 111 const int maxGLErrorsAllowedToConsole = 256; |
| 112 const unsigned maxGLActiveContexts = 16; | 112 const unsigned maxGLActiveContexts = 16; |
| 113 | 113 |
| 114 using WebGLRenderingContextBaseSet = PersistentHeapHashSet<WeakMember<WebGLRende
ringContextBase>>; | 114 using WebGLRenderingContextBaseSet = PersistentHeapHashSet<WeakMember<WebGLRende
ringContextBase>>; |
| (...skipping 6191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6306 contextGL()->PixelStorei(GL_UNPACK_ALIGNMENT, 1); | 6306 contextGL()->PixelStorei(GL_UNPACK_ALIGNMENT, 1); |
| 6307 } | 6307 } |
| 6308 | 6308 |
| 6309 void WebGLRenderingContextBase::restoreUnpackParameters() | 6309 void WebGLRenderingContextBase::restoreUnpackParameters() |
| 6310 { | 6310 { |
| 6311 if (m_unpackAlignment != 1) | 6311 if (m_unpackAlignment != 1) |
| 6312 contextGL()->PixelStorei(GL_UNPACK_ALIGNMENT, m_unpackAlignment); | 6312 contextGL()->PixelStorei(GL_UNPACK_ALIGNMENT, m_unpackAlignment); |
| 6313 } | 6313 } |
| 6314 | 6314 |
| 6315 } // namespace blink | 6315 } // namespace blink |
| OLD | NEW |