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

Side by Side Diff: media/renderers/video_overlay_factory.h

Issue 2298913002: Garcefully handle glCreateGpuMemoryBufferImageCHROMIUM failure. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | media/renderers/video_overlay_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_RENDERERS_VIDEO_OVERLAY_FACTORY_H_ 5 #ifndef MEDIA_RENDERERS_VIDEO_OVERLAY_FACTORY_H_
6 #define MEDIA_RENDERERS_VIDEO_OVERLAY_FACTORY_H_ 6 #define MEDIA_RENDERERS_VIDEO_OVERLAY_FACTORY_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "media/base/media_export.h" 10 #include "media/base/media_export.h"
(...skipping 13 matching lines...) Expand all
24 class MEDIA_EXPORT VideoOverlayFactory { 24 class MEDIA_EXPORT VideoOverlayFactory {
25 public: 25 public:
26 explicit VideoOverlayFactory( 26 explicit VideoOverlayFactory(
27 ::media::GpuVideoAcceleratorFactories* gpu_factories); 27 ::media::GpuVideoAcceleratorFactories* gpu_factories);
28 ~VideoOverlayFactory(); 28 ~VideoOverlayFactory();
29 29
30 scoped_refptr<::media::VideoFrame> CreateFrame(const gfx::Size& size); 30 scoped_refptr<::media::VideoFrame> CreateFrame(const gfx::Size& size);
31 31
32 private: 32 private:
33 class Texture; 33 class Texture;
34 Texture* GetTexture();
35
34 ::media::GpuVideoAcceleratorFactories* gpu_factories_; 36 ::media::GpuVideoAcceleratorFactories* gpu_factories_;
35 std::unique_ptr<Texture> texture_; 37 std::unique_ptr<Texture> texture_;
36 38
37 DISALLOW_COPY_AND_ASSIGN(VideoOverlayFactory); 39 DISALLOW_COPY_AND_ASSIGN(VideoOverlayFactory);
38 }; 40 };
39 41
40 } // namespace media 42 } // namespace media
41 43
42 #endif // MEDIA_RENDERERS_VIDEO_OVERLAY_FACTORY_H_ 44 #endif // MEDIA_RENDERERS_VIDEO_OVERLAY_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | media/renderers/video_overlay_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698