/external/chromium_org/ui/gfx/ |
D | scoped_canvas.h | 15 explicit ScopedCanvas(gfx::Canvas* canvas) : canvas_(canvas) { in ScopedCanvas() 16 if (canvas_) in ScopedCanvas() 17 canvas_->Save(); in ScopedCanvas() 20 if (canvas_) in ~ScopedCanvas() 21 canvas_->Restore(); in ~ScopedCanvas() 24 if (canvas_) in SetCanvas() 25 canvas_->Restore(); in SetCanvas() 26 canvas_ = canvas; in SetCanvas() 27 canvas_->Save(); in SetCanvas() 31 gfx::Canvas* canvas_;
|
D | canvas.cc | 29 canvas_(NULL) { in Canvas() 34 canvas_ = owned_canvas_.get(); in Canvas() 43 canvas_->scale(scale_scalar, scale_scalar); in Canvas() 52 canvas_(owned_canvas_.get()) { in Canvas() 54 canvas_->scale(scale_scalar, scale_scalar); in Canvas() 61 canvas_(owned_canvas_.get()) { in Canvas() 81 canvas_ = owned_canvas_.get(); in RecreateBackingCanvas() 83 canvas_->scale(scale_scalar, scale_scalar); in RecreateBackingCanvas() 153 const SkBitmap& device_bitmap = canvas_->getDevice()->accessBitmap(false); in ExtractImageRep() 212 canvas_->save(); in Save() [all …]
|
D | canvas_skia.cc | 233 canvas_->save(SkCanvas::kClip_SaveFlag); in DrawStringRectWithShadows() 323 canvas_->restore(); in DrawStringRectWithShadows() 427 canvas_->save(SkCanvas::kClip_SaveFlag); in DrawFadeTruncatingStringRectWithFlags() 430 canvas_->restore(); in DrawFadeTruncatingStringRectWithFlags()
|
/external/chromium-trace/trace-viewer/src/tracing/tracks/ |
D | drawing_container.js | 28 this.canvas_ = document.createElement('canvas'); 29 this.canvas_.className = 'drawing-container-canvas'; 30 this.canvas_.style.left = tracing.constants.HEADING_WIDTH + 'px'; 31 this.appendChild(this.canvas_); 33 this.ctx_ = this.canvas_.getContext('2d'); 41 return this.canvas_; 59 this.ctx_.clearRect(0, 0, this.canvas_.width, this.canvas_.height); 76 var bounds = this.canvas_.getBoundingClientRect(); 103 if (this.canvas_.width != innerWidth * pixelRatio) { 104 this.canvas_.width = innerWidth * pixelRatio; [all …]
|
/external/chromium-trace/trace-viewer/src/ui/ |
D | quad_view.js | 73 this.canvas_ = document.createElement('canvas'); 75 this.appendChild(this.canvas_); 82 this.canvas_.addEventListener('mousedown', this.onMouseDown_); 84 this.canvas_.addEventListener('focus', this.redrawCanvas_.bind(this)); 85 this.canvas_.addEventListener('blur', this.redrawCanvas_.bind(this)); 86 this.canvas_.tabIndex = 0; 129 var canvas = this.canvas_; 150 var resizedCanvas = this.viewport_.updateBoxSize(this.canvas_); 152 var ctx = this.canvas_.getContext('2d'); 157 ctx.clearRect(0, 0, this.canvas_.width, this.canvas_.height); [all …]
|
/external/chromium_org/chrome/browser/resources/net_internals/ |
D | timeline_graph_view.js | 66 this.canvas_ = $(canvasId); 67 this.canvas_.onmousewheel = this.onMouseWheel_.bind(this); 68 this.canvas_.onmousedown = this.onMouseDown_.bind(this); 69 this.canvas_.onmousemove = this.onMouseMove_.bind(this); 70 this.canvas_.onmouseup = this.onMouseUp_.bind(this); 71 this.canvas_.onmouseout = this.onMouseUp_.bind(this); 115 var style = getComputedStyle(this.canvas_); 133 this.canvas_.width = canvasWidth; 134 this.canvas_.height = canvasHeight; 138 this.canvas_.getContext('2d').font = getComputedStyle(this.canvas_).font; [all …]
|
/external/chromium-trace/trace-viewer/src/cc/ |
D | picture_as_canvas.js | 16 this.canvas_ = errorOrCanvas; 19 this.canvas_ = undefined; 42 return this.canvas_; 46 return this.error_ === undefined && this.canvas_ === undefined;
|
/external/chromium_org/chrome/browser/resources/file_manager/foreground/js/image_editor/ |
D | image_adjust.js | 39 if (this.canvas_) { 40 this.canvas_.parentNode.removeChild(this.canvas_); 41 this.canvas_ = null; 76 this.canvas_.getContext('2d').putImageData( 89 if (!this.canvas_) { 90 this.canvas_ = this.getImageView().createOverlayCanvas(); 93 this.getImageView().setupDeviceBuffer(this.canvas_);
|
/external/chromium_org/content/browser/aura/ |
D | software_output_device_ozone.cc | 44 canvas_ = skia::SharePtr(factory->GetCanvasForWidget(realized_widget_)); in Resize() 45 device_ = skia::SharePtr(canvas_->getDevice()); in Resize() 51 canvas_->clipRect(gfx::RectToSkRect(damage_rect), SkRegion::kReplace_Op); in BeginPaint() 55 canvas_->save(); in BeginPaint() 63 canvas_->restore(); in EndPaint()
|
D | software_output_device_ozone_unittest.cc | 44 canvas_ = skia::AdoptRef(new SkCanvas(device_.get())); in AttemptToResizeAcceleratedWidget() 48 return canvas_.get(); in GetCanvasForWidget() 56 skia::RefPtr<SkCanvas> canvas_; member in __anon5f30ab110111::MockSurfaceFactoryOzone
|
/external/chromium_org/cc/resources/ |
D | bitmap_content_layer_updater.cc | 71 canvas_ = skia::AdoptRef(new SkCanvas(bitmap_backing_)); in PrepareToUpdate() 76 PaintContents(canvas_.get(), in PrepareToUpdate() 93 CHECK(canvas_); in UpdateTexture() 96 canvas_, in UpdateTexture() 107 canvas_.clear(); in ReduceMemoryUsage() 113 canvas_.clear(); in SetOpaque()
|
/external/chromium_org/ash/touch/ |
D | touch_hud_debug.cc | 336 canvas_(NULL), in TouchHudDebug() 343 canvas_ = new TouchHudCanvas(*touch_log_); in TouchHudDebug() 344 content->AddChildView(canvas_); in TouchHudDebug() 347 canvas_->SetSize(display_size); in TouchHudDebug() 408 canvas_->Clear(); in Clear() 422 canvas_->SetVisible(true); in SetMode() 423 canvas_->SetScale(1); in SetMode() 424 canvas_->SchedulePaint(); in SetMode() 429 canvas_->SetVisible(true); in SetMode() 430 canvas_->SetScale(kReducedScale); in SetMode() [all …]
|
/external/chromium_org/chrome/browser/resources/image_loader/ |
D | request.js | 68 this.canvas_ = document.createElement('canvas'); 74 this.context_ = this.canvas_.getContext('2d'); 348 imageData = this.canvas_.toDataURL('image/png'); 352 imageData = this.canvas_.toDataURL('image/jpeg', 0.9); 386 ImageLoader.resize(this.image_, this.canvas_, this.request_); 436 this.canvas_.width = 0; 437 this.canvas_.height = 0;
|
/external/chromium/chrome/browser/resources/gpu_internals/ |
D | timeline_track.js | 179 this.canvas_ = document.createElement('canvas'); 180 this.canvas_.className = 'timeline-slice-track-canvas'; 181 this.canvasContainer_.appendChild(this.canvas_); 183 this.ctx_ = this.canvas_.getContext('2d'); 206 return this.canvas_; 210 this.canvas_.width = this.canvasContainer_.clientWidth; 211 this.canvas_.height = this.canvasContainer_.clientHeight; 219 var canvasW = this.canvas_.width; 220 var canvasH = this.canvas_.height;
|
/external/chromium_org/chrome/browser/resources/file_manager/foreground/js/media/ |
D | media_util.js | 289 if (!this.canvas_) 290 this.canvas_ = document.createElement('canvas'); 294 this.canvas_.width = this.image_.width; 295 this.canvas_.height = this.image_.height; 296 var context = this.canvas_.getContext('2d'); 316 this.canvas_ : this.image_; 338 return this.loaderType_ == ThumbnailLoader.LoaderType.CANVAS ? this.canvas_ :
|
/external/chromium_org/ui/gfx/ozone/impl/ |
D | file_surface_factory.cc | 70 canvas_ = skia::AdoptRef(new SkCanvas(device_.get())); in AttemptToResizeAcceleratedWidget() 80 if (canvas_->readPixels(&bitmap, 0, 0)) { in SchedulePageFlip() 89 return canvas_.get(); in GetCanvasForWidget()
|
/external/chromium_org/content/browser/resources/media/ |
D | timeline_graph_view.js | 41 this.canvas_ = $(canvasId); 79 var scrollbarRange = this.getLength_() - this.canvas_.width; 152 var width = this.canvas_.width; 153 var height = this.canvas_.height; 154 var context = this.canvas_.getContext('2d'); 183 position = this.getLength_() - this.canvas_.width;
|
/external/chromium_org/skia/ext/ |
D | platform_canvas.h | 142 explicit ScopedPlatformPaint(SkCanvas* canvas) : canvas_(canvas) { in ScopedPlatformPaint() 145 ~ScopedPlatformPaint() { EndPlatformPaint(canvas_); } in ~ScopedPlatformPaint() 150 SkCanvas* canvas_;
|
D | skia_utils_mac.mm | 275 : canvas_(canvas), 359 const SkMatrix& skMatrix = canvas_->getTotalMatrix(); 363 canvas_->save(); 364 canvas_->concat(inverse); 365 canvas_->drawBitmap(subset, bounds.fLeft, bounds.fTop); 366 canvas_->restore(); 373 SkBaseDevice* device = canvas_->getTopDevice(); 407 const SkRegion& clipRgn = canvas_->getTotalClip(); 429 SkMatrix skMatrix = canvas_->getTotalMatrix();
|
D | benchmarking_canvas.cc | 30 canvas_ = skia::AdoptRef(SkNEW_ARGS(SkCanvas, (device.get()))); in TimingCanvas() 32 setProxy(canvas_.get()); in TimingCanvas() 194 skia::RefPtr<SkCanvas> canvas_; member in skia::TimingCanvas
|
/external/chromium_org/content/renderer/browser_plugin/ |
D | browser_plugin_backing_store.cc | 28 canvas_.reset(new SkCanvas(bitmap_)); in BrowserPluginBackingStore() 74 canvas_.get()->drawBitmapRect(sk_bitmap, &srcrect, dstrect, ©_paint); in PaintToBackingStore() 96 canvas_->clear(clear_color); in Clear()
|
/external/chromium_org/cc/output/ |
D | software_output_device.cc | 27 canvas_ = skia::AdoptRef(new SkCanvas(device_.get())); in Resize() 33 return canvas_.get(); in BeginPaint()
|
/external/chromium_org/content/browser/renderer_host/ |
D | backing_store_aura.cc | 46 canvas_.reset(new SkCanvas(bitmap_)); in BackingStoreAura() 81 canvas_.swap(new_canvas); in ScaleFactorChanged() 139 canvas_.get()->drawBitmapRect(sk_bitmap, &srcrect, dstrect, ©_paint); in PaintToBackingStore() 170 if (!canvas_->readPixels(skrect, &b)) in CopyFromBackingStore()
|
/external/chromium_org/content/renderer/gpu/ |
D | compositor_software_output_device.cc | 151 canvas_ = skia::AdoptRef(new SkCanvas(device_.get())); in BeginPaint() 177 canvas_->drawBitmapRect(back_bitmap, &src_rect, dst_rect, NULL); in BeginPaint() 191 return canvas_.get(); in BeginPaint()
|
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/calendar/javascript/ |
D | background.js | 127 this.canvas_ = $('canvas'); // The canvas width + height. 128 this.canvasContext_ = this.canvas_.getContext('2d'); // Canvas context. 131 this.w = this.canvas_.width; // Setting canvas width. 132 this.h = this.canvas_.height; // Setting canvas height.
|