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

Side by Side Diff: Source/core/platform/graphics/gpu/DrawingBuffer.cpp

Issue 14107015: Rename OS(DARWIN) to OS(MACOSX). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years, 3 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) 2010, Google Inc. All rights reserved. 2 * Copyright (c) 2010, Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 m_contextEvictionManager->forciblyLoseOldestContext("WARNING: WebGL cont exts have exceeded the maximum allowed backbuffer area. Oldest context will be l ost."); 643 m_contextEvictionManager->forciblyLoseOldestContext("WARNING: WebGL cont exts have exceeded the maximum allowed backbuffer area. Oldest context will be l ost.");
644 644
645 if (adjustedSize != m_size) { 645 if (adjustedSize != m_size) {
646 do { 646 do {
647 // resize multisample FBO 647 // resize multisample FBO
648 if (!resizeMultisampleFramebuffer(adjustedSize) || !resizeFramebuffe r(adjustedSize)) { 648 if (!resizeMultisampleFramebuffer(adjustedSize) || !resizeFramebuffe r(adjustedSize)) {
649 adjustedSize.scale(s_resourceAdjustedRatio); 649 adjustedSize.scale(s_resourceAdjustedRatio);
650 continue; 650 continue;
651 } 651 }
652 652
653 #if OS(DARWIN) 653 #if OS(MACOSX)
654 // FIXME: This can be removed once renderbufferStorageMultisample st arts reporting GL_OUT_OF_MEMORY properly on OSX. 654 // FIXME: This can be removed once renderbufferStorageMultisample st arts reporting GL_OUT_OF_MEMORY properly on OSX.
655 if (!checkBufferIntegrity()) { 655 if (!checkBufferIntegrity()) {
656 adjustedSize.scale(s_resourceAdjustedRatio); 656 adjustedSize.scale(s_resourceAdjustedRatio);
657 continue; 657 continue;
658 } 658 }
659 #endif 659 #endif
660 break; 660 break;
661 } while (!adjustedSize.isEmpty()); 661 } while (!adjustedSize.isEmpty());
662 662
663 setSize(adjustedSize); 663 setSize(adjustedSize);
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 729
730 void DrawingBuffer::bind() 730 void DrawingBuffer::bind()
731 { 731 {
732 if (!m_context) 732 if (!m_context)
733 return; 733 return;
734 734
735 m_context->bindFramebuffer(GraphicsContext3D::FRAMEBUFFER, m_multisampleFBO ? m_multisampleFBO : m_fbo); 735 m_context->bindFramebuffer(GraphicsContext3D::FRAMEBUFFER, m_multisampleFBO ? m_multisampleFBO : m_fbo);
736 } 736 }
737 737
738 } // namespace WebCore 738 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/platform/graphics/cocoa/FontPlatformDataCocoa.mm ('k') | Source/core/platform/graphics/mac/FontMac.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698