OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/gfx/android/gfx_jni_registrar.h" | 5 #include "ui/gl/gl_state_restorer.h" |
6 | 6 |
7 namespace gfx { | 7 namespace gfx { |
8 | 8 |
9 void RegisterBitmapAndroid(JNIEnv* env); | 9 GLStateRestorer::GLStateRestorer() { |
| 10 } |
10 | 11 |
11 bool RegisterJni(JNIEnv* env) { | 12 GLStateRestorer::~GLStateRestorer() { |
12 RegisterBitmapAndroid(env); | |
13 return true; | |
14 } | 13 } |
15 | 14 |
16 } // namespace gfx | 15 } // namespace gfx |
| 16 |
OLD | NEW |