Home
last modified time | relevance | path

Searched refs:bitmap_ (Results 1 – 25 of 61) sorted by relevance

123

/external/chromium_org/cc/layers/
Dimage_layer.cc29 if (bitmap.pixelRef() && bitmap.pixelRef() == bitmap_.pixelRef()) in SetBitmap()
32 bitmap_ = bitmap; in SetBitmap()
38 return !bitmap_.isNull() && TiledLayer::HasDrawableContent(); in HasDrawableContent()
51 if (!updater_->UsingBitmap(bitmap_)) { in Update()
52 updater_->SetBitmap(bitmap_); in Update()
78 *content_bounds = gfx::Size(bitmap_.width(), bitmap_.height()); in CalculateContentsScale()
88 if (bounds().IsEmpty() || bitmap_.width() == 0) in ImageContentsScaleX()
90 return static_cast<float>(bitmap_.width()) / bounds().width(); in ImageContentsScaleX()
94 if (bounds().IsEmpty() || bitmap_.height() == 0) in ImageContentsScaleY()
96 return static_cast<float>(bitmap_.height()) / bounds().height(); in ImageContentsScaleY()
Dpicture_image_layer.cc28 return !bitmap_.isNull() && PictureLayer::HasDrawableContent(); in HasDrawableContent()
36 if (bitmap.pixelRef() && bitmap.pixelRef() == bitmap_.pixelRef()) in SetBitmap()
39 bitmap_ = bitmap; in SetBitmap()
48 if (!bitmap_.width() || !bitmap_.height()) in PaintContents()
52 SkFloatToScalar(static_cast<float>(bounds().width()) / bitmap_.width()); in PaintContents()
54 SkFloatToScalar(static_cast<float>(bounds().height()) / bitmap_.height()); in PaintContents()
60 canvas->drawBitmap(bitmap_, 0, 0); in PaintContents()
/external/chromium_org/ui/gfx/image/
Dimage_skia_rep.h36 bool is_null() const { return bitmap_.isNull(); } in is_null()
43 int pixel_width() const { return bitmap_.width(); } in pixel_width()
44 int pixel_height() const { return bitmap_.height(); } in pixel_height()
58 const SkBitmap& sk_bitmap() const { return bitmap_; } in sk_bitmap()
62 SkBitmap& mutable_sk_bitmap() { return bitmap_; } in mutable_sk_bitmap()
64 SkBitmap bitmap_; variable
Dimage_skia_rep.cc18 bitmap_.allocN32Pixels(static_cast<int>(size.width() * this->scale()), in ImageSkiaRep()
20 bitmap_.eraseColor(SK_ColorRED); in ImageSkiaRep()
24 : bitmap_(src), in ImageSkiaRep()
29 return static_cast<int>(bitmap_.width() / scale()); in GetWidth()
33 return static_cast<int>(bitmap_.height() / scale()); in GetHeight()
/external/chromium_org/cc/resources/
Dui_resource_request.cc16 : type_(type), id_(id), bitmap_(new UIResourceBitmap(bitmap)) {} in UIResourceRequest()
26 if (request.bitmap_) { in operator =()
27 bitmap_ = make_scoped_ptr(new UIResourceBitmap(*request.bitmap_.get())); in operator =()
29 bitmap_.reset(); in operator =()
Dimage_layer_updater.cc44 gfx::Rect image_rect = gfx::Rect(0, 0, bitmap_.width(), bitmap_.height()); in UpdateTexture()
52 texture, &bitmap_, image_rect, clipped_source_rect, clipped_dest_offset); in UpdateTexture()
61 bitmap_ = bitmap; in SetBitmap()
65 return bitmap.pixelRef() == bitmap_.pixelRef(); in UsingBitmap()
Dui_resource_request.h35 DCHECK(bitmap_); in GetBitmap()
36 return *bitmap_.get(); in GetBitmap()
44 scoped_ptr<UIResourceBitmap> bitmap_; variable
Dui_resource_bitmap.cc83 const UIResourceBitmap& bitmap) : bitmap_(bitmap) { in AutoLockUIResourceBitmap()
84 bitmap_.pixel_ref_->lockPixels(); in AutoLockUIResourceBitmap()
88 bitmap_.pixel_ref_->unlockPixels(); in ~AutoLockUIResourceBitmap()
92 return static_cast<const uint8_t*>(bitmap_.pixel_ref_->pixels()); in GetPixels()
Dbitmap_skpicture_content_layer_updater.cc28 bitmap_.allocPixels(SkImageInfo::Make( in Update()
30 SkCanvas canvas(bitmap_); in Update()
34 texture(), &bitmap_, source_rect, source_rect, dest_offset); in Update()
Dscoped_ui_resource.cc21 : bitmap_(bitmap), host_(host) { in ScopedUIResource()
37 return bitmap_; in GetBitmap()
Dzero_copy_raster_worker_pool.cc44 &bitmap_, buffer_, resource_->format(), resource_->size(), stride_); in AcquireSkCanvas()
45 return skia::AdoptRef(new SkCanvas(bitmap_)); in AcquireSkCanvas()
52 &bitmap_, buffer_, resource_->format()); in ReleaseSkCanvas()
60 SkBitmap bitmap_; member in cc::__anon7f4dd4b10111::RasterBufferImpl
/external/chromium_org/skia/ext/
Dbitmap_platform_device_mac_unittest.cc22 bitmap_.reset(BitmapPlatformDevice::Create( in BitmapPlatformDeviceMacTest()
26 scoped_ptr<BitmapPlatformDevice> bitmap_; member in skia::BitmapPlatformDeviceMacTest
38 bitmap_->setMatrixClip(transform, clip_region, ignore); in TEST_F()
40 CGContextRef context = bitmap_->GetBitmapContext(); in TEST_F()
58 bitmap_->setMatrixClip(transform, clip_region, unused); in TEST_F()
60 CGContextRef context = bitmap_->GetBitmapContext(); in TEST_F()
Dskia_utils_mac.mm300 return SkIRect::MakeWH(bitmap_.width(), bitmap_.height());
303 SkAutoLockPixels lockedPixels(bitmap_);
305 = reinterpret_cast<uint32_t*>(bitmap_.getPixels());
306 int rowPixels = bitmap_.rowBytesAsPixels();
307 int width = bitmap_.width();
308 int height = bitmap_.height();
371 bitmap_.unlockPixels();
376 if (!bitmap_.extractSubset(&subset, bounds)) {
433 bool result = deviceBits.extractSubset(&bitmap_, clip_bounds);
437 bitmap_.lockPixels();
[all …]
Dbitmap_platform_device_mac.cc274 if (!bitmap_.tryAllocN32Pixels(width, height, is_opaque)) in Allocate()
278 bitmap_.eraseColor(0); in Allocate()
280 surface_ = CGContextForData(bitmap_.getPixels(), bitmap_.width(), in Allocate()
281 bitmap_.height()); in Allocate()
/external/chromium_org/chrome/browser/android/thumbnail/
Dthumbnail.cc44 bitmap_(gfx::Size(1, 1), true), in Thumbnail()
61 bitmap_ = cc::UIResourceBitmap(bitmap); in SetBitmap()
73 bitmap_ = cc::UIResourceBitmap(compressed_bitmap, data_size); in SetCompressedBitmap()
85 return bitmap_; in GetBitmap()
89 cc::UIResourceBitmap old_bitmap(bitmap_); in GetBitmap()
91 bitmap_ = cc::UIResourceBitmap(CreateSmallHolderBitmap()); in GetBitmap()
/external/chromium_org/content/browser/android/
Dsystem_ui_resource_manager_impl.cc92 DCHECK(bitmap_.empty()); in SetBitmap()
94 bitmap_ = bitmap; in SetBitmap()
98 if (bitmap_.empty()) in GetUIResourceId()
108 DCHECK(!bitmap_.empty()); in GetBitmap()
109 return cc::UIResourceBitmap(bitmap_); in GetBitmap()
115 const SkBitmap& bitmap() const { return bitmap_; } in bitmap()
118 SkBitmap bitmap_; member in content::SystemUIResourceManagerImpl::Entry
/external/chromium_org/remoting/client/jni/
Djni_frame_consumer.cc52 if (bitmap_->size().width() != buffer->size().width() || in ApplyBuffer()
53 bitmap_->size().height() != buffer->size().height()) { in ApplyBuffer()
67 uint8* dest_buffer = static_cast<uint8*>(bitmap_->pixels()); in ApplyBuffer()
73 bitmap_->stride(), buffer_rect, rect); in ApplyBuffer()
117 bitmap_.reset(); in AllocateBuffer()
119 bitmap_.reset(new gfx::JavaBitmap(bitmap_global_ref_.obj())); in AllocateBuffer()
/external/chromium_org/chrome/browser/ui/ash/launcher/
Dlauncher_favicon_loader.cc37 const SkBitmap& bitmap() const { return bitmap_; } in bitmap()
63 SkBitmap bitmap_; member in internal::FaviconRawBitmapHandler
98 bitmap_.reset(); in DidUpdateFaviconURL()
147 if (!bitmap_.isNull()) { in AddFavicon()
149 if (new_bitmap.height() > bitmap_.height()) in AddFavicon()
153 bitmap_ = new_bitmap; in AddFavicon()
/external/chromium_org/mojo/services/public/cpp/view_manager/lib/
Dbitmap_uploader.cc79 bitmap_ = bitmap; in SetBitmap()
111 if (!bitmap_.isNull()) { in Upload()
112 gfx::Size bitmap_size(bitmap_.width(), bitmap_.height()); in Upload()
114 bitmap_.lockPixels(); in Upload()
123 bitmap_.getPixels()); in Upload()
124 bitmap_.unlockPixels(); in Upload()
210 if (color_ != SK_ColorTRANSPARENT || !bitmap_.isNull()) in OnSurfaceConnectionCreated()
/external/chromium_org/cc/output/
Dcopy_output_result.cc17 bitmap_(bitmap.Pass()) { in CopyOutputResult()
18 DCHECK(bitmap_); in CopyOutputResult()
37 return bitmap_.Pass(); in TakeBitmap()
/external/chromium_org/chrome/browser/ui/cocoa/autofill/
Dautofill_section_view_unittest.mm41 if (!bitmap_) {
42 bitmap_.reset(
58 context_ = [NSGraphicsContext graphicsContextWithBitmapImageRep:bitmap_];
72 ASSERT_NSEQ(color, [bitmap_ colorAtX:x y:y]);
79 base::scoped_nsobject<NSBitmapImageRep> bitmap_;
132 NSColor* quantizedHoverColor = [bitmap_ colorAtX:0 y:0];
/external/chromium_org/net/dns/
Drecord_rdata.cc259 rdata->bitmap_.insert(rdata->bitmap_.begin(), in Create()
275 return bitmap_ == nsec_other->bitmap_; in IsEqual()
280 if (bitmap_.size() < byte_num + 1) in GetBit()
284 return (bitmap_[byte_num] & (1 << bit_num)) != 0; in GetBit()
/external/chromium_org/ui/gfx/android/
Djava_bitmap.cc21 : bitmap_(bitmap), in JavaBitmap()
23 int err = AndroidBitmap_lockPixels(AttachCurrentThread(), bitmap_, &pixels_); in JavaBitmap()
28 err = AndroidBitmap_getInfo(AttachCurrentThread(), bitmap_, &info); in JavaBitmap()
36 int err = AndroidBitmap_unlockPixels(AttachCurrentThread(), bitmap_); in ~JavaBitmap()
/external/chromium_org/third_party/webrtc/modules/desktop_capture/
Ddesktop_frame_win.h31 HBITMAP bitmap() { return bitmap_; } in bitmap()
40 HBITMAP bitmap_; variable
/external/chromium_org/mojo/examples/png_viewer/
Dpng_viewer.cc81 if (!bitmap_.isNull()) in OnEmbed()
125 &bitmap_); in DecodePNG()
139 canvas->drawBitmap(bitmap_, 0, 0, &paint); in DrawBitmap()
179 SkBitmap bitmap_; member in mojo::examples::PNGView

123