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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLVideoElement.h

Issue 1609343004: Add display list fallback reason histograms for 2D canvas (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl web Created 4 years, 10 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) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // Used by WebGL to do GPU-GPU textures copy if possible. 73 // Used by WebGL to do GPU-GPU textures copy if possible.
74 bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platform3DObje ct texture, GLenum internalFormat, GLenum type, bool premultiplyAlpha, bool flip Y); 74 bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platform3DObje ct texture, GLenum internalFormat, GLenum type, bool premultiplyAlpha, bool flip Y);
75 75
76 bool shouldDisplayPosterImage() const { return displayMode() == Poster; } 76 bool shouldDisplayPosterImage() const { return displayMode() == Poster; }
77 77
78 bool hasAvailableVideoFrame() const; 78 bool hasAvailableVideoFrame() const;
79 79
80 KURL posterImageURL() const override; 80 KURL posterImageURL() const override;
81 81
82 // CanvasImageSource implementation 82 // CanvasImageSource implementation
83 PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*, AccelerationHi nt) const override; 83 PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*, AccelerationHi nt, SnapshotReason) const override;
84 bool isVideoElement() const override { return true; } 84 bool isVideoElement() const override { return true; }
85 bool wouldTaintOrigin(SecurityOrigin*) const override; 85 bool wouldTaintOrigin(SecurityOrigin*) const override;
86 FloatSize elementSize() const override; 86 FloatSize elementSize() const override;
87 const KURL& sourceURL() const override { return currentSrc(); } 87 const KURL& sourceURL() const override { return currentSrc(); }
88 88
89 bool isHTMLVideoElement() const override { return true; } 89 bool isHTMLVideoElement() const override { return true; }
90 90
91 // ImageBitmapSource implementation 91 // ImageBitmapSource implementation
92 IntSize bitmapSourceSize() const override; 92 IntSize bitmapSourceSize() const override;
93 ScriptPromise createImageBitmap(ScriptState*, EventTarget&, int sx, int sy, int sw, int sh, const ImageBitmapOptions&, ExceptionState&) override; 93 ScriptPromise createImageBitmap(ScriptState*, EventTarget&, int sx, int sy, int sw, int sh, const ImageBitmapOptions&, ExceptionState&) override;
(...skipping 16 matching lines...) Expand all
110 void setDisplayMode(DisplayMode) override; 110 void setDisplayMode(DisplayMode) override;
111 111
112 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; 112 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader;
113 113
114 AtomicString m_defaultPosterURL; 114 AtomicString m_defaultPosterURL;
115 }; 115 };
116 116
117 } // namespace blink 117 } // namespace blink
118 118
119 #endif // HTMLVideoElement_h 119 #endif // HTMLVideoElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLImageElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLVideoElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698