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

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: Created 6 years, 3 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 unsigned webkitDecodedFrameCount() const; 64 unsigned webkitDecodedFrameCount() const;
65 unsigned webkitDroppedFrameCount() const; 65 unsigned webkitDroppedFrameCount() const;
66 66
67 // Used by canvas to gain raw pixel access 67 // Used by canvas to gain raw pixel access
68 void paintCurrentFrameInContext(GraphicsContext*, const IntRect&) const; 68 void paintCurrentFrameInContext(GraphicsContext*, const IntRect&) const;
69 69
70 // Used by WebGL to do GPU-GPU textures copy if possible. 70 // Used by WebGL to do GPU-GPU textures copy if possible.
71 // See more details at MediaPlayer::copyVideoTextureToPlatformTexture() defi ned in Source/WebCore/platform/graphics/MediaPlayer.h. 71 // See more details at MediaPlayer::copyVideoTextureToPlatformTexture() defi ned in Source/WebCore/platform/graphics/MediaPlayer.h.
72 bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platform3DObje ct texture, GC3Dint level, GLenum internalFormat, GLenum type, bool premultiplyA lpha, bool flipY); 72 bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platform3DObje ct texture, GC3Dint level, GLenum internalFormat, GLenum type, bool premultiplyA lpha, bool flipY);
73 73
74 bool shouldDisplayPosterImage() const { return displayMode() == Poster || di splayMode() == PosterWaitingForVideo; } 74 bool shouldDisplayPosterImage() const { return displayMode() == Poster; }
75 75
76 KURL posterImageURL() const; 76 KURL posterImageURL() const;
77 77
78 // FIXME: Remove this when WebMediaPlayerClientImpl::loadInternal does not d epend on it. 78 // FIXME: Remove this when WebMediaPlayerClientImpl::loadInternal does not d epend on it.
79 virtual KURL mediaPlayerPosterURL() OVERRIDE; 79 virtual KURL mediaPlayerPosterURL() OVERRIDE;
80 80
81 // CanvasImageSource implementation 81 // CanvasImageSource implementation
82 virtual PassRefPtr<Image> getSourceImageForCanvas(SourceImageMode, SourceIma geStatus*) const OVERRIDE; 82 virtual PassRefPtr<Image> getSourceImageForCanvas(SourceImageMode, SourceIma geStatus*) const OVERRIDE;
83 virtual bool isVideoElement() const OVERRIDE { return true; } 83 virtual bool isVideoElement() const OVERRIDE { return true; }
84 virtual bool wouldTaintOrigin(SecurityOrigin*) const OVERRIDE; 84 virtual bool wouldTaintOrigin(SecurityOrigin*) const OVERRIDE;
(...skipping 20 matching lines...) Expand all
105 virtual void setDisplayMode(DisplayMode) OVERRIDE; 105 virtual void setDisplayMode(DisplayMode) OVERRIDE;
106 106
107 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; 107 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader;
108 108
109 AtomicString m_defaultPosterURL; 109 AtomicString m_defaultPosterURL;
110 }; 110 };
111 111
112 } //namespace 112 } //namespace
113 113
114 #endif 114 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698