OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 case GL_DEPTH_ATTACHMENT: | 530 case GL_DEPTH_ATTACHMENT: |
531 m_depthAttachment = renderbuffer; | 531 m_depthAttachment = renderbuffer; |
532 break; | 532 break; |
533 case GL_STENCIL_ATTACHMENT: | 533 case GL_STENCIL_ATTACHMENT: |
534 m_stencilAttachment = renderbuffer; | 534 m_stencilAttachment = renderbuffer; |
535 break; | 535 break; |
536 case GL_DEPTH_STENCIL_ATTACHMENT: | 536 case GL_DEPTH_STENCIL_ATTACHMENT: |
537 m_depthStencilAttachment = renderbuffer; | 537 m_depthStencilAttachment = renderbuffer; |
538 break; | 538 break; |
539 default: | 539 default: |
540 ASSERT_NOT_REACHED(); | 540 NOTREACHED(); |
541 break; | 541 break; |
542 } | 542 } |
543 } | 543 } |
544 | 544 |
545 GLenum CheckFramebufferStatus(GLenum target) override { | 545 GLenum CheckFramebufferStatus(GLenum target) override { |
546 return GL_FRAMEBUFFER_COMPLETE; | 546 return GL_FRAMEBUFFER_COMPLETE; |
547 } | 547 } |
548 | 548 |
549 void GetIntegerv(GLenum ptype, GLint* value) override { | 549 void GetIntegerv(GLenum ptype, GLint* value) override { |
550 switch (ptype) { | 550 switch (ptype) { |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 m_drawingBuffer->setIsHidden(true); | 682 m_drawingBuffer->setIsHidden(true); |
683 releaseCallback->Run(waitSyncToken, false /* lostResource */); | 683 releaseCallback->Run(waitSyncToken, false /* lostResource */); |
684 // m_drawingBuffer deletes mailbox immediately when hidden. | 684 // m_drawingBuffer deletes mailbox immediately when hidden. |
685 | 685 |
686 EXPECT_EQ(waitSyncToken, m_gl->mostRecentlyWaitedSyncToken()); | 686 EXPECT_EQ(waitSyncToken, m_gl->mostRecentlyWaitedSyncToken()); |
687 | 687 |
688 m_drawingBuffer->beginDestruction(); | 688 m_drawingBuffer->beginDestruction(); |
689 } | 689 } |
690 | 690 |
691 } // namespace blink | 691 } // namespace blink |
OLD | NEW |