Home | History | Annotate | Download | only in browser

Lines Matching defs:bitmap

163 // Sends a thumbnail bitmap to Windows. Windows assumes this function is called
166 HRESULT CallDwmSetIconicThumbnail(HWND window, HBITMAP bitmap, DWORD flags) {
179 return dwm_set_iconic_thumbnail(window, bitmap, flags);
182 // Sends a preview bitmap to Windows. Windows assumes this function is called
186 HBITMAP bitmap,
201 return dwm_set_live_preview_bitmap(window, bitmap, client, flags);
315 // Calculate the size of the aeropeek thumbnail and resize the tab bitmap
316 // to the size. When the given bitmap is an empty bitmap, we create a dummy
317 // bitmap from the content-area rectangle to create a DIB. (We don't need to
354 base::win::ScopedBitmap bitmap(
362 if (!bitmap.Get() || !bitmap_data) {
363 LOG(ERROR) << "cannot create a bitmap: " << GetLastError();
376 HRESULT result = CallDwmSetIconicThumbnail(aeropeek_window_, bitmap, 0);
382 // aspect-ratio of the source bitmap. Since Windows returns an error when we
405 // Returns a pixel of the specified bitmap. If this bitmap is a dummy bitmap,
407 int GetPixel(const SkBitmap& bitmap, int x, int y) const {
408 const int* tab_pixels = reinterpret_cast<const int*>(bitmap.getPixels());
411 return tab_pixels[y * bitmap.width() + x];
419 // This rectangle is used only for creating a fall-back bitmap.
425 // The source bitmap.
469 base::win::ScopedBitmap bitmap(
474 if (!bitmap.Get() || !bitmap_data) {
475 LOG(ERROR) << "cannot create a bitmap: " << GetLastError();
489 // content area so Windows can paste this bitmap onto the correct
493 aeropeek_window_, bitmap, &content_offset, 0);
517 // become the same as the bitmap size as shown below.
526 // This rectangle is used for clipping the width and height of the bitmap and
538 // The bitmap of the source tab.
588 // saves a copy of the given bitmap since it takes time to create a Windows
589 // icon from this bitmap set it as the window icon. We will create a Windows
632 // needs the thumbnail bitmap for this place-holder window (e.g. when we
635 // create a thumbnail bitmap and send it to Windows through a
637 // while it waits for a thumbnail bitmap.)
644 // message anytime when it needs a preview bitmap and we have to create and
645 // send the bitmap when it needs it.
1246 const SkBitmap& bitmap = canvas.getTopPlatformDevice().accessBitmap(false);
1247 bitmap.copyTo(preview, SkBitmap::kARGB_8888_Config);