| 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 depth_attachment_ = renderbuffer; | 531 depth_attachment_ = renderbuffer; |
| 532 break; | 532 break; |
| 533 case GL_STENCIL_ATTACHMENT: | 533 case GL_STENCIL_ATTACHMENT: |
| 534 stencil_attachment_ = renderbuffer; | 534 stencil_attachment_ = renderbuffer; |
| 535 break; | 535 break; |
| 536 case GL_DEPTH_STENCIL_ATTACHMENT: | 536 case GL_DEPTH_STENCIL_ATTACHMENT: |
| 537 depth_stencil_attachment_ = renderbuffer; | 537 depth_stencil_attachment_ = 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 683 drawing_buffer_->SetIsHidden(true); | 683 drawing_buffer_->SetIsHidden(true); |
| 684 release_callback->Run(wait_sync_token, false /* lostResource */); | 684 release_callback->Run(wait_sync_token, false /* lostResource */); |
| 685 // m_drawingBuffer deletes mailbox immediately when hidden. | 685 // m_drawingBuffer deletes mailbox immediately when hidden. |
| 686 | 686 |
| 687 EXPECT_EQ(wait_sync_token, gl_->MostRecentlyWaitedSyncToken()); | 687 EXPECT_EQ(wait_sync_token, gl_->MostRecentlyWaitedSyncToken()); |
| 688 | 688 |
| 689 drawing_buffer_->BeginDestruction(); | 689 drawing_buffer_->BeginDestruction(); |
| 690 } | 690 } |
| 691 | 691 |
| 692 } // namespace blink | 692 } // namespace blink |
| OLD | NEW |