Lines Matching refs:resource
181 static void print_diff_resource_cell(SkFILEWStream* stream, DiffResource& resource,
183 if (resource.fBitmap.empty()) {
184 if (DiffResource::kCouldNotDecode_Status == resource.fStatus) {
185 if (local && !resource.fFilename.isEmpty()) {
186 print_link_cell(stream, resource.fFilename, "N/A");
189 if (!resource.fFullPath.isEmpty()) {
190 if (!resource.fFullPath.startsWith(PATH_DIV_STR)) {
191 resource.fFullPath.prepend(relativePath);
193 print_link_cell(stream, resource.fFullPath, "N/A");
201 int height = compute_image_height(resource.fBitmap.height(), resource.fBitmap.width());
203 print_image_cell(stream, resource.fFilename, height);
206 if (!resource.fFullPath.startsWith(PATH_DIV_STR)) {
207 resource.fFullPath.prepend(relativePath);
209 print_image_cell(stream, resource.fFullPath, height);