| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "chrome/browser/android/compositor/scene_layer/static_tab_scene_layer.h
" | 5 #include "chrome/browser/android/compositor/scene_layer/static_tab_scene_layer.h
" |
| 6 | 6 |
| 7 #include "cc/layers/layer.h" | 7 #include "cc/layers/layer.h" |
| 8 #include "chrome/browser/android/compositor/layer/content_layer.h" | 8 #include "chrome/browser/android/compositor/layer/content_layer.h" |
| 9 #include "chrome/browser/android/compositor/layer_title_cache.h" | 9 #include "chrome/browser/android/compositor/layer_title_cache.h" |
| 10 #include "chrome/browser/android/compositor/tab_content_manager.h" | 10 #include "chrome/browser/android/compositor/tab_content_manager.h" |
| 11 #include "content/public/browser/android/compositor.h" | 11 #include "content/public/browser/android/compositor.h" |
| 12 #include "jni/StaticTabSceneLayer_jni.h" | 12 #include "jni/StaticTabSceneLayer_jni.h" |
| 13 #include "third_party/skia/include/core/SkColor.h" | 13 #include "third_party/skia/include/core/SkColor.h" |
| 14 #include "ui/android/resources/resource_manager_impl.h" | 14 #include "ui/android/resources/resource_manager_impl.h" |
| 15 | 15 |
| 16 using base::android::JavaParamRef; |
| 17 |
| 16 namespace chrome { | 18 namespace chrome { |
| 17 namespace android { | 19 namespace android { |
| 18 | 20 |
| 19 StaticTabSceneLayer::StaticTabSceneLayer(JNIEnv* env, jobject jobj) | 21 StaticTabSceneLayer::StaticTabSceneLayer(JNIEnv* env, jobject jobj) |
| 20 : SceneLayer(env, jobj), | 22 : SceneLayer(env, jobj), |
| 21 last_set_tab_id_(-1), | 23 last_set_tab_id_(-1), |
| 22 background_color_(SK_ColorWHITE), | 24 background_color_(SK_ColorWHITE), |
| 23 brightness_(1.f) { | 25 brightness_(1.f) { |
| 24 } | 26 } |
| 25 | 27 |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 StaticTabSceneLayer* scene_layer = new StaticTabSceneLayer(env, jobj); | 129 StaticTabSceneLayer* scene_layer = new StaticTabSceneLayer(env, jobj); |
| 128 return reinterpret_cast<intptr_t>(scene_layer); | 130 return reinterpret_cast<intptr_t>(scene_layer); |
| 129 } | 131 } |
| 130 | 132 |
| 131 bool RegisterStaticTabSceneLayer(JNIEnv* env) { | 133 bool RegisterStaticTabSceneLayer(JNIEnv* env) { |
| 132 return RegisterNativesImpl(env); | 134 return RegisterNativesImpl(env); |
| 133 } | 135 } |
| 134 | 136 |
| 135 } // namespace android | 137 } // namespace android |
| 136 } // namespace chrome | 138 } // namespace chrome |
| OLD | NEW |