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 #ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_STATIC_TAB_SCENE_LAYER_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_STATIC_TAB_SCENE_LAYER_H_ |
6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_STATIC_TAB_SCENE_LAYER_H_ | 6 #define CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_STATIC_TAB_SCENE_LAYER_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 26 matching lines...) Expand all Loading... |
37 SkColor GetBackgroundColor() override; | 37 SkColor GetBackgroundColor() override; |
38 | 38 |
39 // Update StaticTabSceneLayer with the new parameters. | 39 // Update StaticTabSceneLayer with the new parameters. |
40 void UpdateTabLayer( | 40 void UpdateTabLayer( |
41 JNIEnv* env, | 41 JNIEnv* env, |
42 const base::android::JavaParamRef<jobject>& jobj, | 42 const base::android::JavaParamRef<jobject>& jobj, |
43 const base::android::JavaParamRef<jobject>& jtab_content_manager, | 43 const base::android::JavaParamRef<jobject>& jtab_content_manager, |
44 jint id, | 44 jint id, |
45 jint toolbar_resource_id, | 45 jint toolbar_resource_id, |
46 jboolean can_use_live_layer, | 46 jboolean can_use_live_layer, |
| 47 jboolean can_use_static_layer, |
47 jint default_background_color, | 48 jint default_background_color, |
48 jfloat x, | 49 jfloat x, |
49 jfloat y, | 50 jfloat y, |
50 jfloat static_to_view_blend, | 51 jfloat static_to_view_blend, |
51 jfloat saturation, | 52 jfloat saturation, |
52 jfloat brightness); | 53 jfloat brightness); |
53 | 54 |
54 private: | 55 private: |
55 scoped_refptr<android::ContentLayer> content_layer_; | 56 scoped_refptr<android::ContentLayer> content_layer_; |
56 scoped_refptr<cc::Layer> content_scene_layer_; | 57 scoped_refptr<cc::Layer> content_scene_layer_; |
57 | 58 |
58 int last_set_tab_id_; | 59 int last_set_tab_id_; |
59 int background_color_; | 60 int background_color_; |
60 float brightness_; | 61 float brightness_; |
61 | 62 |
62 DISALLOW_COPY_AND_ASSIGN(StaticTabSceneLayer); | 63 DISALLOW_COPY_AND_ASSIGN(StaticTabSceneLayer); |
63 }; | 64 }; |
64 | 65 |
65 bool RegisterStaticTabSceneLayer(JNIEnv* env); | 66 bool RegisterStaticTabSceneLayer(JNIEnv* env); |
66 | 67 |
67 } // namespace android | 68 } // namespace android |
68 | 69 |
69 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_STATIC_TAB_SCENE_LAYER_
H_ | 70 #endif // CHROME_BROWSER_ANDROID_COMPOSITOR_SCENE_LAYER_STATIC_TAB_SCENE_LAYER_
H_ |
OLD | NEW |