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

Side by Side Diff: chromecast/renderer/media/hole_frame_factory.h

Issue 1427543002: Modified old wait sync point functions to also accept new sync tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: format Created 5 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
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 CHROMECAST_RENDERER_MEDIA_HOLE_FRAME_FACTORY_H_ 5 #ifndef CHROMECAST_RENDERER_MEDIA_HOLE_FRAME_FACTORY_H_
6 #define CHROMECAST_RENDERER_MEDIA_HOLE_FRAME_FACTORY_H_ 6 #define CHROMECAST_RENDERER_MEDIA_HOLE_FRAME_FACTORY_H_
7 7
8 #include <GLES2/gl2.h> 8 #include <GLES2/gl2.h>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "gpu/command_buffer/common/mailbox.h" 11 #include "gpu/command_buffer/common/mailbox.h"
12 #include "gpu/command_buffer/common/sync_token.h"
12 13
13 namespace gfx { 14 namespace gfx {
14 class Size; 15 class Size;
15 } 16 }
16 17
17 namespace media { 18 namespace media {
18 class GpuVideoAcceleratorFactories; 19 class GpuVideoAcceleratorFactories;
19 class VideoFrame; 20 class VideoFrame;
20 } 21 }
21 22
22 namespace chromecast { 23 namespace chromecast {
23 namespace media { 24 namespace media {
24 25
25 // Creates VideoFrames for CMA - native textures that get turned into 26 // Creates VideoFrames for CMA - native textures that get turned into
26 // transparent holes in the browser compositor using overlay system. 27 // transparent holes in the browser compositor using overlay system.
27 // All calls (including ctor/dtor) must be on media thread. 28 // All calls (including ctor/dtor) must be on media thread.
28 class HoleFrameFactory { 29 class HoleFrameFactory {
29 public: 30 public:
30 explicit HoleFrameFactory( 31 explicit HoleFrameFactory(
31 ::media::GpuVideoAcceleratorFactories* gpu_factories); 32 ::media::GpuVideoAcceleratorFactories* gpu_factories);
32 ~HoleFrameFactory(); 33 ~HoleFrameFactory();
33 34
34 scoped_refptr<::media::VideoFrame> CreateHoleFrame(const gfx::Size& size); 35 scoped_refptr<::media::VideoFrame> CreateHoleFrame(const gfx::Size& size);
35 36
36 private: 37 private:
37 ::media::GpuVideoAcceleratorFactories* gpu_factories_; 38 ::media::GpuVideoAcceleratorFactories* gpu_factories_;
38 gpu::Mailbox mailbox_; 39 gpu::Mailbox mailbox_;
40 gpu::SyncToken sync_token_;
39 GLuint texture_; 41 GLuint texture_;
40 GLuint image_id_; 42 GLuint image_id_;
41 GLuint sync_point_;
42 43
43 DISALLOW_COPY_AND_ASSIGN(HoleFrameFactory); 44 DISALLOW_COPY_AND_ASSIGN(HoleFrameFactory);
44 }; 45 };
45 46
46 } // namespace media 47 } // namespace media
47 } // namespace chromecast 48 } // namespace chromecast
48 49
49 #endif // CHROMECAST_RENDERER_MEDIA_HOLE_FRAME_FACTORY_H_ 50 #endif // CHROMECAST_RENDERER_MEDIA_HOLE_FRAME_FACTORY_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_copyrequest.cc ('k') | chromecast/renderer/media/hole_frame_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698