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

Side by Side Diff: cc/layers/video_frame_provider_client_impl.h

Issue 1818073002: Always apply UniformMatrix4fvStreamTextureMatrixCHROMIUM matrix argument. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase [If you wait by the river long enough, the bodies of your gyp files will float by] Created 4 years, 4 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 | cc/layers/video_frame_provider_client_impl.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CC_LAYERS_VIDEO_FRAME_PROVIDER_CLIENT_IMPL_H_ 5 #ifndef CC_LAYERS_VIDEO_FRAME_PROVIDER_CLIENT_IMPL_H_
6 #define CC_LAYERS_VIDEO_FRAME_PROVIDER_CLIENT_IMPL_H_ 6 #define CC_LAYERS_VIDEO_FRAME_PROVIDER_CLIENT_IMPL_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 "base/synchronization/lock.h" 10 #include "base/synchronization/lock.h"
(...skipping 27 matching lines...) Expand all
38 38
39 bool Stopped() const; 39 bool Stopped() const;
40 // Must be called on the impl thread while the main thread is blocked. 40 // Must be called on the impl thread while the main thread is blocked.
41 void Stop(); 41 void Stop();
42 42
43 scoped_refptr<media::VideoFrame> AcquireLockAndCurrentFrame(); 43 scoped_refptr<media::VideoFrame> AcquireLockAndCurrentFrame();
44 void PutCurrentFrame(); 44 void PutCurrentFrame();
45 void ReleaseLock(); 45 void ReleaseLock();
46 bool HasCurrentFrame(); 46 bool HasCurrentFrame();
47 47
48 const gfx::Transform& StreamTextureMatrix() const;
49
50 // VideoFrameController implementation. 48 // VideoFrameController implementation.
51 void OnBeginFrame(const BeginFrameArgs& args) override; 49 void OnBeginFrame(const BeginFrameArgs& args) override;
52 void DidDrawFrame() override; 50 void DidDrawFrame() override;
53 51
54 // VideoFrameProvider::Client implementation. 52 // VideoFrameProvider::Client implementation.
55 // Called on the main thread. 53 // Called on the main thread.
56 void StopUsingProvider() override; 54 void StopUsingProvider() override;
57 // Called on the impl thread. 55 // Called on the impl thread.
58 void StartRendering() override; 56 void StartRendering() override;
59 void StopRendering() override; 57 void StopRendering() override;
(...skipping 17 matching lines...) Expand all
77 bool rendering_; 75 bool rendering_;
78 bool needs_put_current_frame_; 76 bool needs_put_current_frame_;
79 77
80 // Since the provider lives on another thread, it can be destroyed while the 78 // Since the provider lives on another thread, it can be destroyed while the
81 // frame controller are accessing its frame. Before being destroyed the 79 // frame controller are accessing its frame. Before being destroyed the
82 // provider calls StopUsingProvider. provider_lock_ blocks StopUsingProvider 80 // provider calls StopUsingProvider. provider_lock_ blocks StopUsingProvider
83 // from returning until the frame controller is done using the frame. 81 // from returning until the frame controller is done using the frame.
84 base::Lock provider_lock_; 82 base::Lock provider_lock_;
85 base::ThreadChecker thread_checker_; 83 base::ThreadChecker thread_checker_;
86 84
87 gfx::Transform stream_texture_matrix_;
88
89 DISALLOW_COPY_AND_ASSIGN(VideoFrameProviderClientImpl); 85 DISALLOW_COPY_AND_ASSIGN(VideoFrameProviderClientImpl);
90 }; 86 };
91 87
92 } // namespace cc 88 } // namespace cc
93 89
94 #endif // CC_LAYERS_VIDEO_FRAME_PROVIDER_CLIENT_IMPL_H_ 90 #endif // CC_LAYERS_VIDEO_FRAME_PROVIDER_CLIENT_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/video_frame_provider_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698