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

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

Issue 525773002: Remove PosterWaitingForVideo which is redundant (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 11 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
« no previous file with comments | « Source/core/html/HTMLMediaElement.h ('k') | Source/core/html/HTMLVideoElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 unsigned webkitDecodedFrameCount() const; 65 unsigned webkitDecodedFrameCount() const;
66 unsigned webkitDroppedFrameCount() const; 66 unsigned webkitDroppedFrameCount() const;
67 67
68 // Used by canvas to gain raw pixel access 68 // Used by canvas to gain raw pixel access
69 void paintCurrentFrameInContext(GraphicsContext*, const IntRect&) const; 69 void paintCurrentFrameInContext(GraphicsContext*, const IntRect&) const;
70 70
71 // Used by WebGL to do GPU-GPU textures copy if possible. 71 // Used by WebGL to do GPU-GPU textures copy if possible.
72 // See more details at MediaPlayer::copyVideoTextureToPlatformTexture() defi ned in Source/WebCore/platform/graphics/MediaPlayer.h. 72 // See more details at MediaPlayer::copyVideoTextureToPlatformTexture() defi ned in Source/WebCore/platform/graphics/MediaPlayer.h.
73 bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platform3DObje ct texture, GC3Dint level, GLenum internalFormat, GLenum type, bool premultiplyA lpha, bool flipY); 73 bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platform3DObje ct texture, GC3Dint level, GLenum internalFormat, GLenum type, bool premultiplyA lpha, bool flipY);
74 74
75 bool shouldDisplayPosterImage() const { return displayMode() == Poster || di splayMode() == PosterWaitingForVideo; } 75 bool shouldDisplayPosterImage() const { return displayMode() == Poster; }
76 76
77 KURL posterImageURL() const; 77 KURL posterImageURL() const;
78 78
79 // FIXME: Remove this when WebMediaPlayerClientImpl::loadInternal does not d epend on it. 79 // FIXME: Remove this when WebMediaPlayerClientImpl::loadInternal does not d epend on it.
80 virtual KURL mediaPlayerPosterURL() override; 80 virtual KURL mediaPlayerPosterURL() override;
81 81
82 // CanvasImageSource implementation 82 // CanvasImageSource implementation
83 virtual PassRefPtr<Image> getSourceImageForCanvas(SourceImageMode, SourceIma geStatus*) const override; 83 virtual PassRefPtr<Image> getSourceImageForCanvas(SourceImageMode, SourceIma geStatus*) const override;
84 virtual bool isVideoElement() const override { return true; } 84 virtual bool isVideoElement() const override { return true; }
85 virtual bool wouldTaintOrigin(SecurityOrigin*) const override; 85 virtual bool wouldTaintOrigin(SecurityOrigin*) const override;
(...skipping 22 matching lines...) Expand all
108 virtual void setDisplayMode(DisplayMode) override; 108 virtual void setDisplayMode(DisplayMode) override;
109 109
110 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; 110 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader;
111 111
112 AtomicString m_defaultPosterURL; 112 AtomicString m_defaultPosterURL;
113 }; 113 };
114 114
115 } // namespace blink 115 } // namespace blink
116 116
117 #endif // HTMLVideoElement_h 117 #endif // HTMLVideoElement_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLMediaElement.h ('k') | Source/core/html/HTMLVideoElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698