| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 2627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2638 } | 2638 } |
| 2639 return 0; | 2639 return 0; |
| 2640 } | 2640 } |
| 2641 | 2641 |
| 2642 void Internals::resetTypeAheadSession(HTMLSelectElement* select) { | 2642 void Internals::resetTypeAheadSession(HTMLSelectElement* select) { |
| 2643 ASSERT(select); | 2643 ASSERT(select); |
| 2644 select->resetTypeAheadSessionForTesting(); | 2644 select->resetTypeAheadSessionForTesting(); |
| 2645 } | 2645 } |
| 2646 | 2646 |
| 2647 bool Internals::loseSharedGraphicsContext3D() { | 2647 bool Internals::loseSharedGraphicsContext3D() { |
| 2648 std::unique_ptr<WebGraphicsContext3DProvider> sharedProvider = wrapUnique( | 2648 std::unique_ptr<WebGraphicsContext3DProvider> sharedProvider = |
| 2649 Platform::current()->createSharedOffscreenGraphicsContext3DProvider()); | 2649 WTF::wrapUnique(Platform::current() |
| 2650 ->createSharedOffscreenGraphicsContext3DProvider()); |
| 2650 if (!sharedProvider) | 2651 if (!sharedProvider) |
| 2651 return false; | 2652 return false; |
| 2652 gpu::gles2::GLES2Interface* sharedGL = sharedProvider->contextGL(); | 2653 gpu::gles2::GLES2Interface* sharedGL = sharedProvider->contextGL(); |
| 2653 sharedGL->LoseContextCHROMIUM(GL_GUILTY_CONTEXT_RESET_EXT, | 2654 sharedGL->LoseContextCHROMIUM(GL_GUILTY_CONTEXT_RESET_EXT, |
| 2654 GL_INNOCENT_CONTEXT_RESET_EXT); | 2655 GL_INNOCENT_CONTEXT_RESET_EXT); |
| 2655 // To prevent tests that call loseSharedGraphicsContext3D from being | 2656 // To prevent tests that call loseSharedGraphicsContext3D from being |
| 2656 // flaky, we call finish so that the context is guaranteed to be lost | 2657 // flaky, we call finish so that the context is guaranteed to be lost |
| 2657 // synchronously (i.e. before returning). | 2658 // synchronously (i.e. before returning). |
| 2658 sharedGL->Finish(); | 2659 sharedGL->Finish(); |
| 2659 return true; | 2660 return true; |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3058 | 3059 |
| 3059 void Internals::crash() { | 3060 void Internals::crash() { |
| 3060 CHECK(false) << "Intentional crash"; | 3061 CHECK(false) << "Intentional crash"; |
| 3061 } | 3062 } |
| 3062 | 3063 |
| 3063 void Internals::setIsLowEndDevice(bool isLowEndDevice) { | 3064 void Internals::setIsLowEndDevice(bool isLowEndDevice) { |
| 3064 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); | 3065 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); |
| 3065 } | 3066 } |
| 3066 | 3067 |
| 3067 } // namespace blink | 3068 } // namespace blink |
| OLD | NEW |