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

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

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years 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 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 MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 5 #ifndef MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
6 #define MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 6 #define MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // directly deleting) for proper destruction, as per the 62 // directly deleting) for proper destruction, as per the
63 // VideoDecodeAccelerator interface. 63 // VideoDecodeAccelerator interface.
64 virtual scoped_ptr<VideoDecodeAccelerator> CreateVideoDecodeAccelerator() = 0; 64 virtual scoped_ptr<VideoDecodeAccelerator> CreateVideoDecodeAccelerator() = 0;
65 65
66 // Caller owns returned pointer, but should call Destroy() on it (instead of 66 // Caller owns returned pointer, but should call Destroy() on it (instead of
67 // directly deleting) for proper destruction, as per the 67 // directly deleting) for proper destruction, as per the
68 // VideoEncodeAccelerator interface. 68 // VideoEncodeAccelerator interface.
69 virtual scoped_ptr<VideoEncodeAccelerator> CreateVideoEncodeAccelerator() = 0; 69 virtual scoped_ptr<VideoEncodeAccelerator> CreateVideoEncodeAccelerator() = 0;
70 70
71 // Allocate & delete native textures. 71 // Allocate & delete native textures.
72 virtual bool CreateTextures(int32 count, 72 virtual bool CreateTextures(int32_t count,
73 const gfx::Size& size, 73 const gfx::Size& size,
74 std::vector<uint32>* texture_ids, 74 std::vector<uint32_t>* texture_ids,
75 std::vector<gpu::Mailbox>* texture_mailboxes, 75 std::vector<gpu::Mailbox>* texture_mailboxes,
76 uint32 texture_target) = 0; 76 uint32_t texture_target) = 0;
77 virtual void DeleteTexture(uint32 texture_id) = 0; 77 virtual void DeleteTexture(uint32_t texture_id) = 0;
78 78
79 virtual void WaitSyncToken(const gpu::SyncToken& sync_token) = 0; 79 virtual void WaitSyncToken(const gpu::SyncToken& sync_token) = 0;
80 80
81 virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( 81 virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
82 const gfx::Size& size, 82 const gfx::Size& size,
83 gfx::BufferFormat format, 83 gfx::BufferFormat format,
84 gfx::BufferUsage usage) = 0; 84 gfx::BufferUsage usage) = 0;
85 85
86 virtual bool ShouldUseGpuMemoryBuffersForVideoFrames() const = 0; 86 virtual bool ShouldUseGpuMemoryBuffersForVideoFrames() const = 0;
87 virtual unsigned ImageTextureTarget() = 0; 87 virtual unsigned ImageTextureTarget() = 0;
(...skipping 19 matching lines...) Expand all
107 GetVideoEncodeAcceleratorSupportedProfiles() = 0; 107 GetVideoEncodeAcceleratorSupportedProfiles() = 0;
108 108
109 protected: 109 protected:
110 friend class base::RefCounted<GpuVideoAcceleratorFactories>; 110 friend class base::RefCounted<GpuVideoAcceleratorFactories>;
111 virtual ~GpuVideoAcceleratorFactories() {} 111 virtual ~GpuVideoAcceleratorFactories() {}
112 }; 112 };
113 113
114 } // namespace media 114 } // namespace media
115 115
116 #endif // MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_ 116 #endif // MEDIA_RENDERERS_GPU_VIDEO_ACCELERATOR_FACTORIES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698