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

Side by Side Diff: content/common/gpu/media/android_video_decode_accelerator.h

Issue 1808433003: Fix build issue of missing BackingStrategy vtable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ 5 #ifndef CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_
6 #define CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ 6 #define CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 // Whether the pictures produced by this backing strategy are overlayable. 99 // Whether the pictures produced by this backing strategy are overlayable.
100 virtual bool ArePicturesOverlayable() = 0; 100 virtual bool ArePicturesOverlayable() = 0;
101 101
102 // Size may have changed due to resolution change since the last time this 102 // Size may have changed due to resolution change since the last time this
103 // PictureBuffer was used. Update the size of the picture buffer to 103 // PictureBuffer was used. Update the size of the picture buffer to
104 // |new_size| and also update any size-dependent state (e.g. size of 104 // |new_size| and also update any size-dependent state (e.g. size of
105 // associated texture). Callers should set the correct GL context prior to 105 // associated texture). Callers should set the correct GL context prior to
106 // calling. 106 // calling.
107 virtual void UpdatePictureBufferSize(media::PictureBuffer* picture_buffer, 107 virtual void UpdatePictureBufferSize(media::PictureBuffer* picture_buffer,
108 const gfx::Size& new_size); 108 const gfx::Size& new_size) = 0;
109 }; 109 };
110 110
111 AndroidVideoDecodeAccelerator( 111 AndroidVideoDecodeAccelerator(
112 const base::WeakPtr<gpu::gles2::GLES2Decoder> decoder, 112 const base::WeakPtr<gpu::gles2::GLES2Decoder> decoder,
113 const base::Callback<bool(void)>& make_context_current); 113 const base::Callback<bool(void)>& make_context_current);
114 114
115 ~AndroidVideoDecodeAccelerator() override; 115 ~AndroidVideoDecodeAccelerator() override;
116 116
117 // media::VideoDecodeAccelerator implementation: 117 // media::VideoDecodeAccelerator implementation:
118 bool Initialize(const Config& config, Client* client) override; 118 bool Initialize(const Config& config, Client* client) override;
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 334
335 // WeakPtrFactory for posting tasks back to |this|. 335 // WeakPtrFactory for posting tasks back to |this|.
336 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; 336 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_;
337 337
338 friend class AndroidVideoDecodeAcceleratorTest; 338 friend class AndroidVideoDecodeAcceleratorTest;
339 }; 339 };
340 340
341 } // namespace content 341 } // namespace content
342 342
343 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ 343 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698