HomeSort by relevance Sort by last modified time
    Searched defs:bitmap (Results 476 - 500 of 1117) sorted by null

<<11121314151617181920>>

  /external/chromium_org/chrome/browser/profiles/
profile_info_cache_unittest.cc 564 // Put a real bitmap into "bitmap". 2x2 bitmap of green 32 bit pixels.
565 SkBitmap bitmap; local
566 bitmap.allocN32Pixels(2, 2);
567 bitmap.eraseColor(SK_ColorGREEN);
570 GURL("http://www.google.com/avatar.png"), &bitmap);
  /external/chromium_org/chrome/browser/ui/views/
create_application_shortcut_view.cc 181 const SkBitmap& bitmap = *icon->ToSkBitmap(); local
182 if (bitmap.width() == kIconPreviewSizePixels &&
183 bitmap.height() == kIconPreviewSizePixels) {
184 icon_->SetImage(gfx::ImageSkia::CreateFrom1xBitmap(bitmap));
188 bitmap, skia::ImageOperations::RESIZE_LANCZOS3,
456 SkBitmap bitmap = icon ? icon->AsBitmap() : SkBitmap(); local
457 extensions::TabHelper::FromWebContents(web_contents_)->SetAppIcon(bitmap);
  /external/chromium_org/chrome/browser/ui/webui/extensions/
extension_icon_source.cc 169 SkBitmap bitmap; local
172 bitmap = DesaturateImage(image);
174 bitmap = *image;
176 request->callback.Run(BitmapToMemory(&bitmap).get());
193 // There are cases where Resize returns an empty bitmap, for example if you
  /external/chromium_org/chrome/browser/web_applications/
web_app_win.cc 45 SkBitmap bitmap = it->AsBitmap(); local
47 SkAutoLockPixels image_lock(bitmap);
49 reinterpret_cast<const char*>(bitmap.getPixels()), bitmap.getSize());
  /external/chromium_org/chrome/utility/
printing_handler.cc 318 base::File bitmap = IPC::PlatformFileForTransitToFile(bitmap_transit); local
320 bitmap.Pass())) {
  /external/chromium_org/content/renderer/media/
webmediaplayer_ms.cc 56 SkBitmap bitmap; local
57 bitmap.allocN32Pixels(frame->visible_rect().width(),
59 frame->ReadPixelsFromNativeTexture(bitmap);
62 reinterpret_cast<uint8*>(bitmap.getPixels()),
63 bitmap.rowBytes(),
  /external/chromium_org/content/renderer/
skia_benchmarking_extension.cc 160 SkBitmap bitmap; local
161 if (!bitmap.tryAllocN32Pixels(snapped_clip.width(), snapped_clip.height()))
163 bitmap.eraseARGB(0, 0, 0, 0);
165 SkCanvas canvas(bitmap);
176 // Raster the requested command subset into the bitmap-backed canvas.
186 blink::WebArrayBuffer::create(bitmap.getSize(), 1);
187 uint32* packed_pixels = reinterpret_cast<uint32*>(bitmap.getPixels());
190 for (size_t i = 0; i < bitmap.getSize(); i += 4) {
266 // Measure the total time by drawing straight into a bitmap-backed canvas.
267 SkBitmap bitmap; local
    [all...]
  /external/chromium_org/extensions/browser/
extension_icon_image_unittest.cc 33 SkBitmap bitmap; local
35 bitmap.allocN32Pixels(static_cast<int>(size_dip * scale),
37 bitmap.eraseColor(SkColorSetARGB(0, 0, 0, 0));
38 return bitmap;
image_loader.cc 52 SkBitmap ResizeIfNeeded(const SkBitmap& bitmap,
54 gfx::Size original_size(bitmap.width(), bitmap.height());
59 bitmap, skia::ImageOperations::RESIZE_LANCZOS3,
63 return bitmap;
66 void LoadResourceOnUIThread(int resource_id, SkBitmap* bitmap) {
72 *bitmap = *image.bitmap();
76 SkBitmap* bitmap) {
94 gfx::PNGCodec::Decode(data, file_contents.length(), bitmap);
157 SkBitmap bitmap; member in struct:extensions::ImageLoader::LoadResult
190 SkBitmap bitmap; local
281 const SkBitmap& bitmap = it->bitmap; local
309 const SkBitmap& bitmap = it->bitmap; local
    [all...]
  /external/chromium_org/media/filters/
skcanvas_video_renderer_unittest.cc 26 SkBitmap bitmap; local
27 if (!bitmap.tryAllocN32Pixels(1, 1))
29 if (!canvas->readPixels(&bitmap, x, y))
31 return bitmap.getColor(0, 0);
89 SkBitmap bitmap; local
90 bitmap.allocPixels(SkImageInfo::MakeN32(width, height, kPremul_SkAlphaType));
91 bitmap.eraseColor(0);
92 return bitmap;
343 // Force painting to a non-zero position on the destination bitmap, to check
  /external/chromium_org/ppapi/native_client/tests/ppapi_test_lib/
test_interface.cc 216 void* bitmap = NULL; local
217 PP_Resource image = CreateImageData(size2d, kOpaqueBlack, &bitmap);
232 uint32_t pixel_color = static_cast<uint32_t*>(bitmap)[stride * y + x];
  /external/chromium_org/skia/ext/
analysis_canvas.cc 146 // This bitmap is solid if and only if the following holds.
181 void AnalysisCanvas::drawBitmap(const SkBitmap& bitmap,
205 void AnalysisCanvas::drawBitmapMatrix(const SkBitmap& bitmap,
213 void AnalysisCanvas::drawBitmapNine(const SkBitmap& bitmap,
222 void AnalysisCanvas::drawSprite(const SkBitmap& bitmap,
301 // Needed for now, since SkCanvas requires a bitmap, even if it is not backed
304 SkBitmap bitmap; local
305 bitmap.setInfo(SkImageInfo::MakeUnknown(width, height));
306 return bitmap;
437 // Actually saving a layer here could cause a new bitmap to be create
    [all...]
platform_canvas_unittest.cc 30 bool IsOfColor(const SkBitmap& bitmap, int x, int y, uint32_t color) {
34 return (*bitmap.getAddr32(x, y) | alpha_mask) == (color | alpha_mask);
45 const SkBitmap& bitmap = device->accessBitmap(false); local
46 SkAutoLockPixels lock(bitmap);
48 for (int cur_y = 0; cur_y < bitmap.height(); cur_y++) {
49 for (int cur_x = 0; cur_x < bitmap.width(); cur_x++) {
53 if (!IsOfColor(bitmap, cur_x, cur_y, rect_color))
57 if (!IsOfColor(bitmap, cur_x, cur_y, canvas_color))
73 const SkBitmap& bitmap = device->accessBitmap(false); local
74 SkAutoLockPixels lock(bitmap);
    [all...]
  /external/chromium_org/third_party/WebKit/Source/platform/graphics/
DeferredImageDecoder.cpp 71 bool DeferredImageDecoder::isLazyDecoded(const SkBitmap& bitmap)
73 return bitmap.pixelRef()
74 && bitmap.pixelRef()->getURI()
75 && !memcmp(bitmap.pixelRef()->getURI(), labelDiscardable, sizeof(labelDiscardable));
247 // If data has changed then create a new bitmap. This forces
276 SkBitmap bitmap; local
278 bool installed = SkInstallDiscardablePixelRef(generator, &bitmap);
280 bitmap.pixelRef()->setURI(labelDiscardable);
281 generator->setGenerationId(bitmap.getGenerationID());
282 return bitmap;
    [all...]
ImageBuffer.cpp 103 const SkBitmap& ImageBuffer::bitmap() const function in class:blink::ImageBuffer
105 return m_surface->bitmap();
141 static SkBitmap deepSkBitmapCopy(const SkBitmap& bitmap)
144 if (!bitmap.deepCopyTo(&tmp))
145 bitmap.copyTo(&tmp, bitmap.colorType());
155 const SkBitmap& bitmap = m_surface->bitmap(); local
156 return BitmapImage::create(NativeImageSkia::create(copyBehavior == CopyBackingStore ? deepSkBitmapCopy(bitmap) : bitmap));
268 SkBitmap bitmap = m_surface->bitmap(); local
294 const SkBitmap& bitmap = m_surface->bitmap(); local
309 const SkBitmap& bitmap = m_surface->bitmap(); local
    [all...]
  /external/chromium_org/third_party/freetype/src/base/
ftbitmap.c 101 FT_Bitmap* bitmap,
113 width = bitmap->width;
114 height = bitmap->rows;
115 pitch = bitmap->pitch;
119 switch ( bitmap->pixel_mode )
153 FT_Byte* line = bitmap->buffer + ( bit_last >> 3 );
154 FT_Byte* end = bitmap->buffer + pitch;
178 if ( FT_QALLOC_MULT( buffer, new_pitch, bitmap->rows + ypixels ) )
181 if ( bitmap->pitch > 0 )
186 for ( i = 0; i < bitmap->rows; i++
717 FT_Bitmap bitmap; local
    [all...]
  /external/chromium_org/third_party/mesa/src/src/mesa/state_tracker/
st_program.h 50 GLuint bitmap:1; /**< glBitmap variant? */ member in struct:st_fp_variant_key
  /external/chromium_org/third_party/skia/bench/
BitmapBench.cpp 76 const bool fForceUpdate; //bitmap marked as dirty before each draw. forces bitmap to be updated on device cache
95 fName.set("bitmap");
134 const SkBitmap& bitmap = fBitmap; local
135 const SkScalar x0 = SkIntToScalar(-bitmap.width() / 2);
136 const SkScalar y0 = SkIntToScalar(-bitmap.height() / 2);
143 bitmap.notifyPixelsChanged();
145 canvas->drawBitmap(bitmap, x, y, &paint);
  /external/chromium_org/third_party/skia/experimental/Intersection/
EdgeWalkerPolygons_Test.cpp 11 static SkBitmap bitmap; variable
24 testSimplify(path, true, out, bitmap); // expect |\/|
38 testSimplify(path, true, out, bitmap);
51 testSimplify(path, true, out, bitmap);
64 testSimplify(path, true, out, bitmap);
79 testSimplify(path, true, out, bitmap);
94 testSimplify(path, true, out, bitmap);
109 testSimplify(path, true, out, bitmap);
124 testSimplify(path, true, out, bitmap);
139 testSimplify(path, true, out, bitmap);
    [all...]
EdgeWalkerRectangles_Test.cpp 11 static SkBitmap bitmap; variable
19 testSimplify(path, true, out, bitmap);
316 testSimplify(path, true, out, bitmap);
  /external/chromium_org/third_party/skia/samplecode/
SampleColorFilter.cpp 102 SkBitmap bitmap; local
103 bitmap.allocN32Pixels(n, n);
104 bitmap.eraseColor(SK_ColorTRANSPARENT);
106 SkCanvas canvas(bitmap);
122 return bitmap;
SampleRegion.cpp 22 SkBitmap bitmap; local
23 bitmap.allocPixels(SkImageInfo::MakeA8(width*2, height*2));
24 bitmap.eraseColor(SK_ColorTRANSPARENT);
35 SkCanvas c(bitmap);
45 canvas->drawBitmap(bitmap, 0, 0, NULL);
50 canvas->drawBitmap(bitmap, SkIntToScalar(2*width), 0, NULL);
  /external/chromium_org/third_party/skia/src/core/
SkBitmapDevice.cpp 60 SkBitmapDevice::SkBitmapDevice(const SkBitmap& bitmap) : fBitmap(bitmap) {
61 SkASSERT(valid_for_bitmap_device(bitmap.info(), NULL));
65 SkBitmapDevice::SkBitmapDevice(const SkBitmap& bitmap, const SkDeviceProperties& deviceProperties)
67 , fBitmap(bitmap)
69 SkASSERT(valid_for_bitmap_device(bitmap.info(), NULL));
81 SkBitmap bitmap; local
84 if (!bitmap.setInfo(info)) {
88 if (!bitmap.tryAllocPixels(info)) {
91 if (!bitmap.info().isOpaque())
    [all...]
SkBitmapProcShader.cpp 150 const SkBitmap& bitmap = *fState->fBitmap; local
151 bool bitmapIsOpaque = bitmap.isOpaque();
159 switch (bitmap.colorType()) {
175 if (rec.fPaint->isDither() && bitmap.colorType() != kRGB_565_SkColorType) {
182 if (1 == bitmap.height() &&
194 // The bitmap proc state has been created outside of the context on memory that will be freed
302 // returns true and set color if the bitmap can be drawn as a single color
331 // SkBitmapProcShader stores bitmap coordinates in a 16bit buffer, as it
466 "Couldn't convert bitmap to texture.");
  /external/chromium_org/third_party/skia/src/utils/
SkCanvasStateUtils.cpp 226 // we currently only work for bitmap backed devices
227 const SkBitmap& bitmap = layer.device()->accessBitmap(true/*changePixels*/); local
228 if (bitmap.empty() || bitmap.isNull() || !bitmap.lockPixelsAreWritable()) {
237 layerState->width = bitmap.width();
238 layerState->height = bitmap.height();
240 switch (bitmap.colorType()) {
250 layerState->raster.rowBytes = bitmap.rowBytes();
251 layerState->raster.pixels = bitmap.getPixels()
297 SkBitmap bitmap; local
    [all...]

Completed in 1317 milliseconds

<<11121314151617181920>>