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

Side by Side Diff: sky/engine/core/html/HTMLVideoElement.h

Issue 683703003: Remove various Heap* types. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/engine/core/html/HTMLMediaElement.cpp ('k') | sky/engine/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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 // GL types as defined in OpenGL ES 2.0 header file gl2.h from khronos.org. 43 // GL types as defined in OpenGL ES 2.0 header file gl2.h from khronos.org.
44 // That header cannot be included directly due to a conflict with NPAPI headers. 44 // That header cannot be included directly due to a conflict with NPAPI headers.
45 // See crbug.com/328085. 45 // See crbug.com/328085.
46 typedef unsigned GLenum; 46 typedef unsigned GLenum;
47 typedef int GC3Dint; 47 typedef int GC3Dint;
48 48
49 class HTMLVideoElement final : public HTMLMediaElement, public CanvasImageSource { 49 class HTMLVideoElement final : public HTMLMediaElement, public CanvasImageSource {
50 DEFINE_WRAPPERTYPEINFO(); 50 DEFINE_WRAPPERTYPEINFO();
51 public: 51 public:
52 static PassRefPtr<HTMLVideoElement> create(Document&); 52 static PassRefPtr<HTMLVideoElement> create(Document&);
53 virtual void trace(Visitor*) override;
54 53
55 unsigned videoWidth() const; 54 unsigned videoWidth() const;
56 unsigned videoHeight() const; 55 unsigned videoHeight() const;
57 56
58 // Used by canvas to gain raw pixel access 57 // Used by canvas to gain raw pixel access
59 void paintCurrentFrameInContext(GraphicsContext*, const IntRect&) const; 58 void paintCurrentFrameInContext(GraphicsContext*, const IntRect&) const;
60 59
61 // Used by WebGL to do GPU-GPU textures copy if possible. 60 // Used by WebGL to do GPU-GPU textures copy if possible.
62 // See more details at MediaPlayer::copyVideoTextureToPlatformTexture() defi ned in engine/WebCore/platform/graphics/MediaPlayer.h. 61 // See more details at MediaPlayer::copyVideoTextureToPlatformTexture() defi ned in engine/WebCore/platform/graphics/MediaPlayer.h.
63 bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platform3DObje ct texture, GC3Dint level, GLenum internalFormat, GLenum type, bool premultiplyA lpha, bool flipY); 62 bool copyVideoTextureToPlatformTexture(WebGraphicsContext3D*, Platform3DObje ct texture, GC3Dint level, GLenum internalFormat, GLenum type, bool premultiplyA lpha, bool flipY);
(...skipping 30 matching lines...) Expand all
94 virtual void setDisplayMode(DisplayMode) override; 93 virtual void setDisplayMode(DisplayMode) override;
95 94
96 OwnPtr<HTMLImageLoader> m_imageLoader; 95 OwnPtr<HTMLImageLoader> m_imageLoader;
97 96
98 AtomicString m_defaultPosterURL; 97 AtomicString m_defaultPosterURL;
99 }; 98 };
100 99
101 } // namespace blink 100 } // namespace blink
102 101
103 #endif // HTMLVideoElement_h 102 #endif // HTMLVideoElement_h
OLDNEW
« no previous file with comments | « sky/engine/core/html/HTMLMediaElement.cpp ('k') | sky/engine/core/html/HTMLVideoElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698