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

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

Issue 2121043002: 16 bpp video stream capture, render and WebGL usage - Realsense R200 & SR300 support. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tests: cc, skcanvas_video_renderer, wrtcrecorder... Fake capture supports Y16. Created 4 years, 2 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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 friend class WebGLDebugShaders; 426 friend class WebGLDebugShaders;
427 friend class WebGLCompressedTextureASTC; 427 friend class WebGLCompressedTextureASTC;
428 friend class WebGLCompressedTextureATC; 428 friend class WebGLCompressedTextureATC;
429 friend class WebGLCompressedTextureETC1; 429 friend class WebGLCompressedTextureETC1;
430 friend class WebGLCompressedTexturePVRTC; 430 friend class WebGLCompressedTexturePVRTC;
431 friend class WebGLCompressedTextureS3TC; 431 friend class WebGLCompressedTextureS3TC;
432 friend class WebGLRenderingContextErrorMessageCallback; 432 friend class WebGLRenderingContextErrorMessageCallback;
433 friend class WebGLVertexArrayObjectBase; 433 friend class WebGLVertexArrayObjectBase;
434 friend class ScopedTexture2DRestorer; 434 friend class ScopedTexture2DRestorer;
435 friend class ScopedFramebufferRestorer; 435 friend class ScopedFramebufferRestorer;
436 friend class ScopedUnpackParametersResetRestore;
436 437
437 WebGLRenderingContextBase(HTMLCanvasElement*, std::unique_ptr<WebGraphicsCon text3DProvider>, const WebGLContextAttributes&, unsigned); 438 WebGLRenderingContextBase(HTMLCanvasElement*, std::unique_ptr<WebGraphicsCon text3DProvider>, const WebGLContextAttributes&, unsigned);
438 WebGLRenderingContextBase(OffscreenCanvas*, std::unique_ptr<WebGraphicsConte xt3DProvider>, const WebGLContextAttributes&, unsigned); 439 WebGLRenderingContextBase(OffscreenCanvas*, std::unique_ptr<WebGraphicsConte xt3DProvider>, const WebGLContextAttributes&, unsigned);
439 PassRefPtr<DrawingBuffer> createDrawingBuffer(std::unique_ptr<WebGraphicsCon text3DProvider>); 440 PassRefPtr<DrawingBuffer> createDrawingBuffer(std::unique_ptr<WebGraphicsCon text3DProvider>);
440 void setupFlags(); 441 void setupFlags();
441 442
442 // CanvasRenderingContext implementation. 443 // CanvasRenderingContext implementation.
443 bool is3d() const override { return true; } 444 bool is3d() const override { return true; }
444 bool isAccelerated() const override { return true; } 445 bool isAccelerated() const override { return true; }
445 void setIsHidden(bool) override; 446 void setIsHidden(bool) override;
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 const unsigned m_version; 1120 const unsigned m_version;
1120 }; 1121 };
1121 1122
1122 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d()); 1123 DEFINE_TYPE_CASTS(WebGLRenderingContextBase, CanvasRenderingContext, context, co ntext->is3d(), context.is3d());
1123 1124
1124 } // namespace blink 1125 } // namespace blink
1125 1126
1126 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState); 1127 WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::WebGLRenderingContextB ase::TextureUnitState);
1127 1128
1128 #endif // WebGLRenderingContextBase_h 1129 #endif // WebGLRenderingContextBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698