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

Side by Side Diff: ui/android/resources/resource_manager_impl.h

Issue 2578233002: Remove title resources when they are no longer used (Closed)
Patch Set: address comments Created 3 years, 11 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 UI_ANDROID_RESOURCES_RESOURCE_MANAGER_IMPL_H_ 5 #ifndef UI_ANDROID_RESOURCES_RESOURCE_MANAGER_IMPL_H_
6 #define UI_ANDROID_RESOURCES_RESOURCE_MANAGER_IMPL_H_ 6 #define UI_ANDROID_RESOURCES_RESOURCE_MANAGER_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 const base::android::JavaRef<jobjectArray>& frame_rects, 67 const base::android::JavaRef<jobjectArray>& frame_rects,
68 jint unscaled_sprite_width, 68 jint unscaled_sprite_width,
69 jint unscaled_sprite_height, 69 jint unscaled_sprite_height,
70 jfloat scaled_sprite_width, 70 jfloat scaled_sprite_width,
71 jfloat scaled_sprite_height); 71 jfloat scaled_sprite_height);
72 void OnCrushedSpriteResourceReloaded( 72 void OnCrushedSpriteResourceReloaded(
73 JNIEnv* env, 73 JNIEnv* env,
74 const base::android::JavaRef<jobject>& jobj, 74 const base::android::JavaRef<jobject>& jobj,
75 jint bitmap_res_id, 75 jint bitmap_res_id,
76 const base::android::JavaRef<jobject>& bitmap); 76 const base::android::JavaRef<jobject>& bitmap);
77 void RemoveResource(
78 JNIEnv* env,
79 const base::android::JavaRef<jobject>& jobj,
80 jint res_type,
81 jint res_id);
77 void ClearTintedResourceCache(JNIEnv* env, 82 void ClearTintedResourceCache(JNIEnv* env,
78 const base::android::JavaRef<jobject>& jobj); 83 const base::android::JavaRef<jobject>& jobj);
79 84
80 static bool RegisterResourceManager(JNIEnv* env); 85 static bool RegisterResourceManager(JNIEnv* env);
81 86
82 // Helper method for processing crushed sprite metadata; public for testing. 87 // Helper method for processing crushed sprite metadata; public for testing.
83 CrushedSpriteResource::SrcDstRects ProcessCrushedSpriteFrameRects( 88 CrushedSpriteResource::SrcDstRects ProcessCrushedSpriteFrameRects(
84 std::vector<std::vector<int>> frame_rects_vector); 89 std::vector<std::vector<int>> frame_rects_vector);
85 90
86 // base::trace_event::MemoryDumpProvider implementation. 91 // base::trace_event::MemoryDumpProvider implementation.
(...skipping 24 matching lines...) Expand all
111 TintedResourceMap tinted_resources_; 116 TintedResourceMap tinted_resources_;
112 117
113 base::android::ScopedJavaGlobalRef<jobject> java_obj_; 118 base::android::ScopedJavaGlobalRef<jobject> java_obj_;
114 119
115 DISALLOW_COPY_AND_ASSIGN(ResourceManagerImpl); 120 DISALLOW_COPY_AND_ASSIGN(ResourceManagerImpl);
116 }; 121 };
117 122
118 } // namespace ui 123 } // namespace ui
119 124
120 #endif // UI_ANDROID_RESOURCES_RESOURCE_MANAGER_IMPL_H_ 125 #endif // UI_ANDROID_RESOURCES_RESOURCE_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698