Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 id) : surface_id(id) {} | |
|
watk
2017/02/22 20:38:56
s/id/surface_id/ to match header
liberato (no reviews please)
2017/02/23 18:18:46
Done.
| |
| 10 | |
| 11 AVDASurfaceBundle::~AVDASurfaceBundle() { | |
| 12 // Explicitly free the surface first, just to be sure. | |
|
watk
2017/02/22 20:38:56
Unclear what you want to be sure of here. That it'
liberato (no reviews please)
2017/02/23 18:18:46
yes, done.
| |
| 13 surface = gl::ScopedJavaSurface(); | |
| 14 // TODO(liberato): should we ReleaseSurfaceTexture here, in case this isn't | |
| 15 // the last reference? | |
| 16 surface_texture = nullptr; | |
|
watk
2017/02/22 20:38:56
Yes I think so. If you drop the bundle you're drop
liberato (no reviews please)
2017/02/23 18:18:46
i'm not sure that it's safe, the more that i think
watk
2017/02/23 20:03:47
But this is what we've always done right? The Post
liberato (no reviews please)
2017/03/06 22:59:36
ah, really good catch! done.
| |
| 17 } | |
| 18 | |
| 19 } // namespace media | |
| OLD | NEW |