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

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

Issue 1833273002: Remove WebGraphicsContext3D::getGLES2Interface(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: getgles2: rebase Created 4 years, 8 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 17 matching lines...) Expand all
28 28
29 #include "core/CoreExport.h" 29 #include "core/CoreExport.h"
30 #include "core/html/HTMLImageLoader.h" 30 #include "core/html/HTMLImageLoader.h"
31 #include "core/html/HTMLMediaElement.h" 31 #include "core/html/HTMLMediaElement.h"
32 #include "core/html/canvas/CanvasImageSource.h" 32 #include "core/html/canvas/CanvasImageSource.h"
33 #include "core/imagebitmap/ImageBitmapSource.h" 33 #include "core/imagebitmap/ImageBitmapSource.h"
34 #include "platform/graphics/GraphicsTypes3D.h" 34 #include "platform/graphics/GraphicsTypes3D.h"
35 35
36 class SkPaint; 36 class SkPaint;
37 37
38 namespace gpu {
39 namespace gles2 {
40 class GLES2Interface;
41 }
42 }
43
38 namespace blink { 44 namespace blink {
39 class WebGraphicsContext3D;
40 class ExceptionState; 45 class ExceptionState;
41 class GraphicsContext; 46 class GraphicsContext;
42 class ImageBitmapOptions; 47 class ImageBitmapOptions;
43 48
44 // GL types as defined in OpenGL ES 2.0 header file gl2.h from khronos.org. 49 // GL types as defined in OpenGL ES 2.0 header file gl2.h from khronos.org.
45 // That header cannot be included directly due to a conflict with NPAPI headers. 50 // That header cannot be included directly due to a conflict with NPAPI headers.
46 // See crbug.com/328085. 51 // See crbug.com/328085.
47 typedef unsigned GLenum; 52 typedef unsigned GLenum;
48 typedef int GC3Dint; 53 typedef int GC3Dint;
49 54
(...skipping 14 matching lines...) Expand all
64 bool usesOverlayFullscreenVideo() const override; 69 bool usesOverlayFullscreenVideo() const override;
65 70
66 // Statistics 71 // Statistics
67 unsigned webkitDecodedFrameCount() const; 72 unsigned webkitDecodedFrameCount() const;
68 unsigned webkitDroppedFrameCount() const; 73 unsigned webkitDroppedFrameCount() const;
69 74
70 // Used by canvas to gain raw pixel access 75 // Used by canvas to gain raw pixel access
71 void paintCurrentFrame(SkCanvas*, const IntRect&, const SkPaint*) const; 76 void paintCurrentFrame(SkCanvas*, const IntRect&, const SkPaint*) const;
72 77
73 // Used by WebGL to do GPU-GPU textures copy if possible. 78 // 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); 79 bool copyVideoTextureToPlatformTexture(gpu::gles2::GLES2Interface*, Platform 3DObject texture, GLenum internalFormat, GLenum type, bool premultiplyAlpha, boo l flipY);
75 80
76 bool shouldDisplayPosterImage() const { return getDisplayMode() == Poster; } 81 bool shouldDisplayPosterImage() const { return getDisplayMode() == Poster; }
77 82
78 bool hasAvailableVideoFrame() const; 83 bool hasAvailableVideoFrame() const;
79 84
80 KURL posterImageURL() const override; 85 KURL posterImageURL() const override;
81 86
82 // CanvasImageSource implementation 87 // CanvasImageSource implementation
83 PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*, AccelerationHi nt, SnapshotReason, const FloatSize&) const override; 88 PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*, AccelerationHi nt, SnapshotReason, const FloatSize&) const override;
84 bool isVideoElement() const override { return true; } 89 bool isVideoElement() const override { return true; }
(...skipping 25 matching lines...) Expand all
110 void setDisplayMode(DisplayMode) override; 115 void setDisplayMode(DisplayMode) override;
111 116
112 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; 117 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader;
113 118
114 AtomicString m_defaultPosterURL; 119 AtomicString m_defaultPosterURL;
115 }; 120 };
116 121
117 } // namespace blink 122 } // namespace blink
118 123
119 #endif // HTMLVideoElement_h 124 #endif // HTMLVideoElement_h
OLDNEW
« no previous file with comments | « media/blink/webmediaplayer_impl.cc ('k') | third_party/WebKit/Source/core/html/HTMLVideoElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698