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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp

Issue 2807923002: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in platform/graphics (Closed)
Patch Set: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in platform/graphics Created 3 years, 8 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) 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698