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

Side by Side Diff: media/gpu/avda_state_provider.h

Issue 2061823003: media: Drop "media::" in media/gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: work around clang format by adding an empty line Created 4 years, 6 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 | « media/gpu/avda_shared_state.cc ('k') | media/gpu/dxva_picture_buffer_win.h » ('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_GPU_AVDA_STATE_PROVIDER_H_ 5 #ifndef MEDIA_GPU_AVDA_STATE_PROVIDER_H_
6 #define MEDIA_GPU_AVDA_STATE_PROVIDER_H_ 6 #define MEDIA_GPU_AVDA_STATE_PROVIDER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/threading/thread_checker.h" 9 #include "base/threading/thread_checker.h"
10 #include "gpu/command_buffer/service/texture_manager.h" 10 #include "gpu/command_buffer/service/texture_manager.h"
(...skipping 13 matching lines...) Expand all
24 24
25 // Helper class that provides the BackingStrategy with enough state 25 // Helper class that provides the BackingStrategy with enough state
26 // to do useful work. 26 // to do useful work.
27 class AVDAStateProvider { 27 class AVDAStateProvider {
28 public: 28 public:
29 // Various handy getters. 29 // Various handy getters.
30 virtual const gfx::Size& GetSize() const = 0; 30 virtual const gfx::Size& GetSize() const = 0;
31 virtual const base::ThreadChecker& ThreadChecker() const = 0; 31 virtual const base::ThreadChecker& ThreadChecker() const = 0;
32 virtual base::WeakPtr<gpu::gles2::GLES2Decoder> GetGlDecoder() const = 0; 32 virtual base::WeakPtr<gpu::gles2::GLES2Decoder> GetGlDecoder() const = 0;
33 virtual gpu::gles2::TextureRef* GetTextureForPicture( 33 virtual gpu::gles2::TextureRef* GetTextureForPicture(
34 const media::PictureBuffer& picture_buffer) = 0; 34 const PictureBuffer& picture_buffer) = 0;
35 35
36 // Create a SurfaceTexture and attach a new gl texture to it. |*service_id| 36 // Create a SurfaceTexture and attach a new gl texture to it. |*service_id|
37 // is set to the created texture id. 37 // is set to the created texture id.
38 virtual scoped_refptr<gl::SurfaceTexture> CreateAttachedSurfaceTexture( 38 virtual scoped_refptr<gl::SurfaceTexture> CreateAttachedSurfaceTexture(
39 GLuint* service_id) = 0; 39 GLuint* service_id) = 0;
40 40
41 // Helper function to report an error condition and stop decoding. 41 // Helper function to report an error condition and stop decoding.
42 // This will post NotifyError(), and transition to the error state. 42 // This will post NotifyError(), and transition to the error state.
43 // It is meant to be called from the RETURN_ON_FAILURE macro. 43 // It is meant to be called from the RETURN_ON_FAILURE macro.
44 virtual void PostError(const ::tracked_objects::Location& from_here, 44 virtual void PostError(const ::tracked_objects::Location& from_here,
45 media::VideoDecodeAccelerator::Error error) = 0; 45 VideoDecodeAccelerator::Error error) = 0;
46 46
47 protected: 47 protected:
48 ~AVDAStateProvider() = default; 48 ~AVDAStateProvider() = default;
49 }; 49 };
50 50
51 } // namespace media 51 } // namespace media
52 52
53 #endif // MEDIA_GPU_AVDA_STATE_PROVIDER_H_ 53 #endif // MEDIA_GPU_AVDA_STATE_PROVIDER_H_
OLDNEW
« no previous file with comments | « media/gpu/avda_shared_state.cc ('k') | media/gpu/dxva_picture_buffer_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698