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

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

Issue 2680933005: Make static KURLs thread safe
Patch Set: :/ Created 3 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 KURL posterImageURL() const override; 97 KURL posterImageURL() const override;
98 98
99 // CanvasImageSource implementation 99 // CanvasImageSource implementation
100 PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*, 100 PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*,
101 AccelerationHint, 101 AccelerationHint,
102 SnapshotReason, 102 SnapshotReason,
103 const FloatSize&) const override; 103 const FloatSize&) const override;
104 bool isVideoElement() const override { return true; } 104 bool isVideoElement() const override { return true; }
105 bool wouldTaintOrigin(SecurityOrigin*) const override; 105 bool wouldTaintOrigin(SecurityOrigin*) const override;
106 FloatSize elementSize(const FloatSize&) const override; 106 FloatSize elementSize(const FloatSize&) const override;
107 const KURL& sourceURL() const override { return currentSrc(); } 107 KURL sourceURL() const override { return currentSrc(); }
108 bool isHTMLVideoElement() const override { return true; } 108 bool isHTMLVideoElement() const override { return true; }
109 int sourceWidth() override { return videoWidth(); } 109 int sourceWidth() override { return videoWidth(); }
110 int sourceHeight() override { return videoHeight(); } 110 int sourceHeight() override { return videoHeight(); }
111 // Video elements currently always go through RAM when used as a canvas image 111 // Video elements currently always go through RAM when used as a canvas image
112 // source. 112 // source.
113 bool isAccelerated() const override { return false; } 113 bool isAccelerated() const override { return false; }
114 114
115 // ImageBitmapSource implementation 115 // ImageBitmapSource implementation
116 IntSize bitmapSourceSize() const override; 116 IntSize bitmapSourceSize() const override;
117 ScriptPromise createImageBitmap(ScriptState*, 117 ScriptPromise createImageBitmap(ScriptState*,
(...skipping 21 matching lines...) Expand all
139 void setDisplayMode(DisplayMode) override; 139 void setDisplayMode(DisplayMode) override;
140 140
141 Member<HTMLImageLoader> m_imageLoader; 141 Member<HTMLImageLoader> m_imageLoader;
142 142
143 AtomicString m_defaultPosterURL; 143 AtomicString m_defaultPosterURL;
144 }; 144 };
145 145
146 } // namespace blink 146 } // namespace blink
147 147
148 #endif // HTMLVideoElement_h 148 #endif // HTMLVideoElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698