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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h

Issue 2738573002: Streamline the presentation of ImageBitmapRenderingContext (Closed)
Patch Set: Created 3 years, 9 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) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 std::unique_ptr<WebGraphicsContext3DProvider>, 613 std::unique_ptr<WebGraphicsContext3DProvider>,
614 const CanvasContextCreationAttributes&, 614 const CanvasContextCreationAttributes&,
615 unsigned); 615 unsigned);
616 PassRefPtr<DrawingBuffer> createDrawingBuffer( 616 PassRefPtr<DrawingBuffer> createDrawingBuffer(
617 std::unique_ptr<WebGraphicsContext3DProvider>, 617 std::unique_ptr<WebGraphicsContext3DProvider>,
618 DrawingBuffer::ChromiumImageUsage); 618 DrawingBuffer::ChromiumImageUsage);
619 void setupFlags(); 619 void setupFlags();
620 620
621 // CanvasRenderingContext implementation. 621 // CanvasRenderingContext implementation.
622 bool is3d() const override { return true; } 622 bool is3d() const override { return true; }
623 bool isComposited() const override { return true; }
623 bool isAccelerated() const override { return true; } 624 bool isAccelerated() const override { return true; }
624 void setIsHidden(bool) override; 625 void setIsHidden(bool) override;
625 bool paintRenderingResultsToCanvas(SourceDrawingBuffer) override; 626 bool paintRenderingResultsToCanvas(SourceDrawingBuffer) override;
626 WebLayer* platformLayer() const override; 627 WebLayer* platformLayer() const override;
627 void stop() override; 628 void stop() override;
628 void finalizeFrame() override; 629 void finalizeFrame() override;
629 630
630 // DrawingBuffer::Client implementation. 631 // DrawingBuffer::Client implementation.
631 bool DrawingBufferClientIsBoundForDraw() override; 632 bool DrawingBufferClientIsBoundForDraw() override;
632 void DrawingBufferClientRestoreScissorTest() override; 633 void DrawingBufferClientRestoreScissorTest() override;
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after
1661 context, 1662 context,
1662 context->is3d(), 1663 context->is3d(),
1663 context.is3d()); 1664 context.is3d());
1664 1665
1665 } // namespace blink 1666 } // namespace blink
1666 1667
1667 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS( 1668 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(
1668 blink::WebGLRenderingContextBase::TextureUnitState); 1669 blink::WebGLRenderingContextBase::TextureUnitState);
1669 1670
1670 #endif // WebGLRenderingContextBase_h 1671 #endif // WebGLRenderingContextBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698