Searched refs:png_data (Results 1 - 25 of 37) sorted by relevance

12

/external/chromium_org/chrome/utility/importer/
H A Dfavicon_reencode.h19 std::vector<unsigned char>* png_data);
H A Dfavicon_reencode.cc17 std::vector<unsigned char>* png_data) {
37 gfx::PNGCodec::EncodeBGRASkBitmap(decoded, false, png_data);
15 ReencodeFavicon(const unsigned char* src_data, size_t src_len, std::vector<unsigned char>* png_data) argument
/external/chromium_org/cc/test/
H A Dpixel_test_utils.cc19 std::vector<unsigned char> png_data; local
22 &png_data) &&
24 char* data = reinterpret_cast<char*>(&png_data[0]);
25 int size = static_cast<int>(png_data.size());
33 std::string png_data; local
34 return base::ReadFileToString(file_path, &png_data) &&
35 gfx::PNGCodec::Decode(reinterpret_cast<unsigned char*>(&png_data[0]),
36 png_data.length(),
/external/chromium_org/chrome/common/importer/
H A Dimported_favicon_usage.h22 std::vector<unsigned char> png_data; member in struct:ImportedFaviconUsage
H A Dprofile_import_process_messages.h175 WriteParam(m, p.png_data);
181 ReadParam(m, iter, &p->png_data) &&
188 LogParam(p.png_data, l);
/external/chromium_org/components/favicon_base/
H A Dfavicon_util.h35 const std::vector<favicon_base::FaviconRawBitmapResult>& png_data,
H A Dfavicon_util.cc32 const std::vector<favicon_base::FaviconRawBitmapResult>& png_data,
36 if (png_data.empty())
43 for (size_t i = 0; i < png_data.size(); ++i) {
44 int area = png_data[i].pixel_size.GetArea();
47 best_candidate = png_data[i].bitmap_data;
62 for (size_t i = 0; i < png_data.size(); ++i) {
63 if (!png_data[i].is_valid())
66 const gfx::Size& pixel_size = png_data[i].pixel_size;
75 png_reps.push_back(gfx::ImagePNGRep(png_data[i].bitmap_data, it->second));
164 const std::vector<favicon_base::FaviconRawBitmapResult>& png_data,
31 SelectFaviconFramesFromPNGsWithoutResizing( const std::vector<favicon_base::FaviconRawBitmapResult>& png_data, const std::vector<float>& favicon_scales, int favicon_size) argument
163 SelectFaviconFramesFromPNGs( const std::vector<favicon_base::FaviconRawBitmapResult>& png_data, const std::vector<float>& favicon_scales, int favicon_size) argument
[all...]
/external/chromium_org/ui/ozone/platform/test/
H A Dfile_surface_factory.cc24 std::vector<unsigned char> png_data; local
25 gfx::PNGCodec::FastEncodeBGRASkBitmap(bitmap, true, &png_data);
27 reinterpret_cast<const char*>(vector_as_array(&png_data)),
28 png_data.size());
/external/chromium_org/gpu/command_buffer/service/
H A Dgpu_state_tracer.cc79 std::vector<unsigned char> png_data; local
87 &png_data);
90 base::StringPiece base64_input(reinterpret_cast<const char*>(&png_data[0]),
91 png_data.size());
/external/chromium_org/chrome/browser/ui/ash/
H A Dscreenshot_taker.cc68 void CopyScreenshotToClipboard(scoped_refptr<base::RefCountedString> png_data) { argument
72 base::Base64Encode(png_data->data(), &encoded);
91 scoped_refptr<base::RefCountedString> png_data(new base::RefCountedString());
92 if (!base::ReadFileToString(screenshot_path, &(png_data->data()))) {
100 base::Bind(CopyScreenshotToClipboard, png_data));
188 scoped_refptr<base::RefCountedBytes> png_data) {
195 reinterpret_cast<char*>(&(png_data->data()[0])),
196 png_data->size())) != png_data->size()) {
207 scoped_refptr<base::RefCountedBytes> png_data) {
185 SaveScreenshotInternal(const ShowNotificationCallback& callback, const base::FilePath& screenshot_path, const base::FilePath& local_path, scoped_refptr<base::RefCountedBytes> png_data) argument
205 SaveScreenshot(const ShowNotificationCallback& callback, const base::FilePath& screenshot_path, scoped_refptr<base::RefCountedBytes> png_data) argument
226 SaveScreenshotToDrive(const ShowNotificationCallback& callback, const base::FilePath& screenshot_path, scoped_refptr<base::RefCountedBytes> png_data, drive::FileError error, const base::FilePath& local_path) argument
246 EnsureDirectoryExistsCallback( const ShowNotificationCallback& callback, Profile* profile, const base::FilePath& screenshot_path, scoped_refptr<base::RefCountedBytes> png_data, drive::FileError error) argument
271 PostSaveScreenshotTask(const ShowNotificationCallback& callback, Profile* profile, const base::FilePath& screenshot_path, scoped_refptr<base::RefCountedBytes> png_data) argument
293 PostSaveScreenshotTask(const ShowNotificationCallback& callback, Profile* profile, const base::FilePath& screenshot_path, scoped_refptr<base::RefCountedBytes> png_data) argument
551 GrabWindowSnapshotAsyncCallback( base::FilePath screenshot_path, bool is_partial, int window_idx, scoped_refptr<base::RefCountedBytes> png_data) argument
575 png_data); local
[all...]
H A Dscreenshot_taker.h79 scoped_refptr<base::RefCountedBytes> png_data);
/external/chromium_org/chrome/browser/ui/libgtk2ui/
H A Dapp_indicator_icon.cc160 const scoped_refptr<base::RefCountedMemory>& png_data) {
164 base::MD5Sum(png_data->front_as<char>(), png_data->size(), &digest);
189 scoped_refptr<base::RefCountedMemory> png_data = local
191 if (png_data->size() == 0) {
213 GetImageFileNameForKDE4(png_data) :
218 png_data->front_as<char>(), png_data->size());
220 if (bytes_written != static_cast<int>(png_data->size()))
159 GetImageFileNameForKDE4( const scoped_refptr<base::RefCountedMemory>& png_data) argument
/external/chromium_org/ui/snapshot/
H A Dsnapshot_async.cc38 scoped_refptr<base::RefCountedBytes> png_data(new base::RefCountedBytes);
54 &png_data->data())) {
57 return png_data;
H A Dsnapshot.h55 typedef base::Callback<void(scoped_refptr<base::RefCountedBytes> png_data)>
H A Dsnapshot_aura_unittest.cc161 void SnapshotCallback(scoped_refptr<base::RefCountedBytes> png_data) { argument
163 image_ = gfx::Image::CreateFrom1xPNGBytes(&(png_data->data()[0]),
164 png_data->size());
/external/chromium_org/content/browser/web_contents/aura/
H A Doverscroll_navigation_overlay_unittest.cc38 std::vector<unsigned char> png_data; local
39 gfx::PNGCodec::EncodeBGRASkBitmap(bitmap, true, &png_data);
41 base::RefCountedBytes::TakeVector(&png_data);
/external/chromium_org/content/browser/renderer_host/
H A Dclipboard_message_filter.cc267 std::vector<unsigned char> png_data; local
268 if (gfx::PNGCodec::FastEncodeBGRASkBitmap(bitmap, false, &png_data)) {
270 if (buffer.CreateAndMapAnonymous(png_data.size())) {
271 memcpy(buffer.memory(), vector_as_array(&png_data), png_data.size());
273 image_size = png_data.size();
/external/chromium_org/content/browser/devtools/
H A Drenderer_overrides_handler.h48 const std::vector<unsigned char>& png_data);
87 scoped_refptr<base::RefCountedBytes> png_data);
H A Drenderer_overrides_handler.cc267 const std::vector<unsigned char>& png_data) {
270 base::StringPiece(reinterpret_cast<const char*>(&png_data[0]),
271 png_data.size()),
481 std::vector<unsigned char> png_data; local
483 &png_data,
485 if (png_data.size())
486 return command->SuccessResponse(CreateScreenshotResponse(png_data));
502 scoped_refptr<base::RefCountedBytes> png_data) {
503 if (png_data) {
505 command->SuccessResponse(CreateScreenshotResponse(png_data
266 CreateScreenshotResponse( const std::vector<unsigned char>& png_data) argument
500 ScreenshotCaptured( scoped_refptr<DevToolsProtocol::Command> command, scoped_refptr<base::RefCountedBytes> png_data) argument
[all...]
/external/chromium_org/chrome/browser/ui/pdf/
H A Dpdf_browsertest.cc185 std::vector<unsigned char> png_data; local
186 gfx::PNGCodec::EncodeBGRASkBitmap(bitmap, false, &png_data);
189 reinterpret_cast<char*>(&png_data[0]), png_data.size());
/external/chromium_org/content/renderer/
H A Dwebclipboard_impl.cc119 std::string png_data;
120 client_->ReadImage(clipboard_type, &png_data);
121 return WebData(png_data);
/external/chromium_org/content/browser/frame_host/
H A Dnavigation_entry_impl.cc353 scoped_refptr<base::RefCountedBytes> png_data) {
354 screenshot_ = png_data;
352 SetScreenshotPNGData( scoped_refptr<base::RefCountedBytes> png_data) argument
/external/chromium_org/chrome/test/base/
H A Dui_test_utils.cc530 std::vector<unsigned char> png_data; local
533 if (ui::GrabDesktopSnapshot(bounds, &png_data) &&
534 png_data.size() <= INT_MAX) {
535 int bytes = static_cast<int>(png_data.size());
537 out_path, reinterpret_cast<char*>(&png_data[0]), bytes);
/external/chromium_org/ui/gfx/
H A Dicon_util.cc289 void* png_data = NULL; local
292 &png_data, &png_size)) {
295 DCHECK(png_data);
299 new base::RefCountedStaticMemory(png_data, png_size));
/external/chromium_org/chrome/browser/
H A Dshell_integration_linux.cc107 scoped_refptr<base::RefCountedMemory> png_data = it->As1xPNGBytes(); local
108 if (png_data->size() == 0) {
115 png_data->front_as<char>(),
116 png_data->size());
118 if (bytes_written != static_cast<int>(png_data->size()))

Completed in 615 milliseconds

12