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

Side by Side Diff: media/gpu/avda_surface_bundle.cc

Issue 2707703002: Group AVDA output surface into AVDASurfaceBundle. (Closed)
Patch Set: cl feedback Created 3 years, 10 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_surface_bundle.h ('k') | 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "media/gpu/avda_surface_bundle.h"
6
7 namespace media {
8
9 AVDASurfaceBundle::AVDASurfaceBundle(int surface_id) : surface_id(surface_id) {}
10
11 AVDASurfaceBundle::~AVDASurfaceBundle() {
12 // Explicitly free the surface first, just to be sure that it's deleted before
13 // the SurfaceTexture is.
14 surface = gl::ScopedJavaSurface();
15 // We do not ReleaseSurfaceTexture here, since the consumer might still have
16 // a reference to |surface_texture|, and might have a back buffer to swap.
17 // If we knew that there was no pending back buffer, then we could release
18 // ithere since the producer side is shut down.
watk 2017/02/23 20:03:47 s/ithere/it there/
liberato (no reviews please) 2017/03/06 22:59:36 Done.
19 surface_texture = nullptr;
20 }
21
22 } // namespace media
OLDNEW
« no previous file with comments | « media/gpu/avda_surface_bundle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698