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

Side by Side Diff: third_party/WebKit/public/platform/Platform.h

Issue 1899403002: MediaStream Image Capture (2): Platform::ImageCaptureFrameGrabber and grabFrame() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reillyg@ comments and made SkBitmap immutable Created 4 years, 7 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 class WebDatabaseObserver; 71 class WebDatabaseObserver;
72 class WebPlatformEventListener; 72 class WebPlatformEventListener;
73 class WebFallbackThemeEngine; 73 class WebFallbackThemeEngine;
74 class WebFileSystem; 74 class WebFileSystem;
75 class WebFileUtilities; 75 class WebFileUtilities;
76 class WebFlingAnimator; 76 class WebFlingAnimator;
77 class WebGeofencingProvider; 77 class WebGeofencingProvider;
78 class WebGestureCurve; 78 class WebGestureCurve;
79 class WebGraphicsContext3DProvider; 79 class WebGraphicsContext3DProvider;
80 class WebIDBFactory; 80 class WebIDBFactory;
81 class WebImageCaptureFrameGrabber;
81 class WebInstalledApp; 82 class WebInstalledApp;
82 class WebMIDIAccessor; 83 class WebMIDIAccessor;
83 class WebMIDIAccessorClient; 84 class WebMIDIAccessorClient;
84 class WebMediaPlayer; 85 class WebMediaPlayer;
85 class WebMediaRecorderHandler; 86 class WebMediaRecorderHandler;
86 class WebMediaStream; 87 class WebMediaStream;
87 class WebMediaStreamCenter; 88 class WebMediaStreamCenter;
88 class WebMediaStreamCenterClient; 89 class WebMediaStreamCenterClient;
89 class WebMediaStreamTrack; 90 class WebMediaStreamTrack;
90 class WebMemoryDumpProvider; 91 class WebMemoryDumpProvider;
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 virtual WebCompositorSupport* compositorSupport() { return nullptr; } 495 virtual WebCompositorSupport* compositorSupport() { return nullptr; }
495 496
496 virtual WebFlingAnimator* createFlingAnimator() { return nullptr; } 497 virtual WebFlingAnimator* createFlingAnimator() { return nullptr; }
497 498
498 // Creates a new fling animation curve instance for device |deviceSource| 499 // Creates a new fling animation curve instance for device |deviceSource|
499 // with |velocity| and already scrolled |cumulativeScroll| pixels. 500 // with |velocity| and already scrolled |cumulativeScroll| pixels.
500 virtual WebGestureCurve* createFlingAnimationCurve(WebGestureDevice deviceSo urce, const WebFloatPoint& velocity, const WebSize& cumulativeScroll) { return n ullptr; } 501 virtual WebGestureCurve* createFlingAnimationCurve(WebGestureDevice deviceSo urce, const WebFloatPoint& velocity, const WebSize& cumulativeScroll) { return n ullptr; }
501 502
502 // WebRTC ---------------------------------------------------------- 503 // WebRTC ----------------------------------------------------------
503 504
504 // Creates an WebRTCPeerConnectionHandler for RTCPeerConnection. 505 // Creates a WebRTCPeerConnectionHandler for RTCPeerConnection.
505 // May return null if WebRTC functionality is not avaliable or if it's out o f resources. 506 // May return null if WebRTC functionality is not avaliable or if it's out o f resources.
506 virtual WebRTCPeerConnectionHandler* createRTCPeerConnectionHandler(WebRTCPe erConnectionHandlerClient*) { return nullptr; } 507 virtual WebRTCPeerConnectionHandler* createRTCPeerConnectionHandler(WebRTCPe erConnectionHandlerClient*) { return nullptr; }
507 508
508 // Creates an WebMediaRecorderHandler to record MediaStreams. 509 // Creates a WebMediaRecorderHandler to record MediaStreams.
509 // May return null if the functionality is not available or out of resources . 510 // May return null if the functionality is not available or out of resources .
510 virtual WebMediaRecorderHandler* createMediaRecorderHandler() { return nullp tr; } 511 virtual WebMediaRecorderHandler* createMediaRecorderHandler() { return nullp tr; }
511 512
512 // May return null if WebRTC functionality is not available or out of resour ces. 513 // May return null if WebRTC functionality is not available or out of resour ces.
513 virtual WebRTCCertificateGenerator* createRTCCertificateGenerator() { return nullptr; } 514 virtual WebRTCCertificateGenerator* createRTCCertificateGenerator() { return nullptr; }
514 515
515 // May return null if WebRTC functionality is not available or out of resour ces. 516 // May return null if WebRTC functionality is not available or out of resour ces.
516 virtual WebMediaStreamCenter* createMediaStreamCenter(WebMediaStreamCenterCl ient*) { return nullptr; } 517 virtual WebMediaStreamCenter* createMediaStreamCenter(WebMediaStreamCenterCl ient*) { return nullptr; }
517 518
518 // Creates an WebCanvasCaptureHandler to capture Canvas output. 519 // Creates a WebCanvasCaptureHandler to capture Canvas output.
519 virtual WebCanvasCaptureHandler* createCanvasCaptureHandler(const WebSize&, double, WebMediaStreamTrack*) { return nullptr; } 520 virtual WebCanvasCaptureHandler* createCanvasCaptureHandler(const WebSize&, double, WebMediaStreamTrack*) { return nullptr; }
520 521
521 // Fills in the WebMediaStream to capture from the WebMediaPlayer identified 522 // Fills in the WebMediaStream to capture from the WebMediaPlayer identified
522 // by the second parameter. 523 // by the second parameter.
523 virtual void createHTMLVideoElementCapturer(WebMediaStream*, WebMediaPlayer* ) {} 524 virtual void createHTMLVideoElementCapturer(WebMediaStream*, WebMediaPlayer* ) {}
524 525
526 // Creates a WebImageCaptureFrameGrabber to take a snapshot of a Video Track s.
527 // May return null if the functionality is not available.
528 virtual WebImageCaptureFrameGrabber* createImageCaptureFrameGrabber() { retu rn nullptr; }
529
525 // WebWorker ---------------------------------------------------------- 530 // WebWorker ----------------------------------------------------------
526 531
527 virtual void didStartWorkerThread() { } 532 virtual void didStartWorkerThread() { }
528 virtual void willStopWorkerThread() { } 533 virtual void willStopWorkerThread() { }
529 534
530 // WebCrypto ---------------------------------------------------------- 535 // WebCrypto ----------------------------------------------------------
531 536
532 virtual WebCrypto* crypto() { return nullptr; } 537 virtual WebCrypto* crypto() { return nullptr; }
533 538
534 // Mojo --------------------------------------------------------------- 539 // Mojo ---------------------------------------------------------------
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 protected: 624 protected:
620 Platform(); 625 Platform();
621 virtual ~Platform() { } 626 virtual ~Platform() { }
622 627
623 WebThread* m_mainThread; 628 WebThread* m_mainThread;
624 }; 629 };
625 630
626 } // namespace blink 631 } // namespace blink
627 632
628 #endif 633 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698