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

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: rebase and fix 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698