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

Side by Side Diff: ui/gl/android/surface_texture_listener.cc

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 | « ui/gl/android/surface_texture_listener.h ('k') | ui/gl/angle_platform_impl.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 (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 #include "ui/gl/android/surface_texture_listener.h" 5 #include "ui/gl/android/surface_texture_listener.h"
6 6
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "base/single_thread_task_runner.h" 8 #include "base/single_thread_task_runner.h"
9 #include "base/threading/thread_task_runner_handle.h" 9 #include "base/threading/thread_task_runner_handle.h"
10 #include "jni/SurfaceTextureListener_jni.h" 10 #include "jni/SurfaceTextureListener_jni.h"
11 11
12 namespace gfx { 12 namespace gl {
13 13
14 SurfaceTextureListener::SurfaceTextureListener(const base::Closure& callback, 14 SurfaceTextureListener::SurfaceTextureListener(const base::Closure& callback,
15 bool use_any_thread) 15 bool use_any_thread)
16 : callback_(callback), 16 : callback_(callback),
17 browser_loop_(base::ThreadTaskRunnerHandle::Get()), 17 browser_loop_(base::ThreadTaskRunnerHandle::Get()),
18 use_any_thread_(use_any_thread) {} 18 use_any_thread_(use_any_thread) {}
19 19
20 SurfaceTextureListener::~SurfaceTextureListener() { 20 SurfaceTextureListener::~SurfaceTextureListener() {
21 } 21 }
22 22
(...skipping 11 matching lines...) Expand all
34 } else { 34 } else {
35 callback_.Run(); 35 callback_.Run();
36 } 36 }
37 } 37 }
38 38
39 // static 39 // static
40 bool SurfaceTextureListener::RegisterSurfaceTextureListener(JNIEnv* env) { 40 bool SurfaceTextureListener::RegisterSurfaceTextureListener(JNIEnv* env) {
41 return RegisterNativesImpl(env); 41 return RegisterNativesImpl(env);
42 } 42 }
43 43
44 } // namespace gfx 44 } // namespace gl
OLDNEW
« no previous file with comments | « ui/gl/android/surface_texture_listener.h ('k') | ui/gl/angle_platform_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698