Home
last modified time | relevance | path

Searched refs:dc (Results 1 – 25 of 67) sorted by relevance

123

/external/webkit/WebCore/platform/graphics/chromium/
DSimpleFontDataChromiumWin.cpp56 HDC dc = GetDC(0); in platformInit() local
57 HGDIOBJ oldFont = SelectObject(dc, m_font.hfont()); in platformInit()
60 if (!GetTextMetrics(dc, &textMetric)) { in platformInit()
65 if (!GetTextMetrics(dc, &textMetric)) in platformInit()
79 if (GetOutlineTextMetrics(dc, sizeof(outlineTextMetric), &outlineTextMetric) > 0) { in platformInit()
83 DWORD len = GetGlyphOutlineW(dc, 'x', GGO_METRICS, &glyphMetrics, 0, 0, &identityMatrix); in platformInit()
90 SelectObject(dc, oldFont); in platformInit()
91 ReleaseDC(0, dc); in platformInit()
127 HDC dc = GetDC(0); in determinePitch() local
128 HGDIOBJ oldFont = SelectObject(dc, m_font.hfont()); in determinePitch()
[all …]
DGlyphPageTreeNodeChromiumWin.cpp53 static Glyph initSpaceGlyph(HDC dc, Glyph* spaceGlyph) in initSpaceGlyph() argument
59 GetGlyphIndices(dc, &space, 1, spaceGlyph, 0); in initSpaceGlyph()
74 HDC dc = GetDC((HWND)0); in fillBMPGlyphs() local
75 HGDIOBJ oldFont = SelectObject(dc, fontData->m_font.hfont()); in fillBMPGlyphs()
78 if (!GetTextMetrics(dc, &tm)) { in fillBMPGlyphs()
79 SelectObject(dc, oldFont); in fillBMPGlyphs()
80 ReleaseDC(0, dc); in fillBMPGlyphs()
133 GetGlyphIndices(dc, buffer, length, localGlyphBuffer, GGI_MARK_NONEXISTING_GLYPHS); in fillBMPGlyphs()
153 glyph = initSpaceGlyph(dc, &spaceGlyph); in fillBMPGlyphs()
159 glyph = initSpaceGlyph(dc, &spaceGlyph); in fillBMPGlyphs()
[all …]
DFontPlatformDataChromiumWin.cpp134 HDC dc = GetDC(0); in scriptFontProperties() local
135 HGDIOBJ oldFont = SelectObject(dc, hfont()); in scriptFontProperties()
136 HRESULT hr = ScriptGetFontProperties(dc, scriptCache(), in scriptFontProperties()
141 hr = ScriptGetFontProperties(dc, scriptCache(), in scriptFontProperties()
149 SelectObject(dc, oldFont); in scriptFontProperties()
150 ReleaseDC(0, dc); in scriptFontProperties()
DFontUtilsChromiumWin.cpp129 HDC dc = GetDC(0); in getAscent() local
130 HGDIOBJ oldFont = SelectObject(dc, hfont); in getAscent()
132 BOOL gotMetrics = GetTextMetrics(dc, &tm); in getAscent()
133 SelectObject(dc, oldFont); in getAscent()
134 ReleaseDC(0, dc); in getAscent()
DFontChromiumWin.cpp100 HDC dc = GetDC(0); in skiaDrawText() local
101 HGDIOBJ oldFont = SelectObject(dc, hfont); in skiaDrawText()
107 const SkPath* path = SkiaWinOutlineCache::lookupOrCreatePathForGlyph(dc, hfont, glyphs[i]); in skiaDrawText()
116 SelectObject(dc, oldFont); in skiaDrawText()
117 ReleaseDC(0, dc); in skiaDrawText()
/external/webkit/WebCore/platform/wx/wxcode/win/
Dfontprops.cpp44 HDC dc = GetDC(0); in wxFontProperties() local
46 ::SelectObject(dc, hFont); in wxFontProperties()
52 GetTextMetrics(dc, &tm); in wxFontProperties()
59 RestoreDC(dc, -1); in wxFontProperties()
60 ReleaseDC(0, dc); in wxFontProperties()
66 HDC dc = GetDC(0); in GetTextExtent() local
68 ::SelectObject(dc, hFont); in GetTextExtent()
75 hfontOld = (HFONT)::SelectObject(dc, hFont); in GetTextExtent()
84 if ( !::GetTextExtentPoint32(dc, str, len, &sizeRect) ) in GetTextExtent()
98 if ( ::GetCharABCWidths(dc, chFirst, chFirst, &width) ) in GetTextExtent()
[all …]
Dnon-kerned-drawing.cpp74 wxGCDC* dc = static_cast<wxGCDC*>(graphicsContext->platformContext()); in drawTextWithSpacing() local
76 wxDC* dc = graphicsContext->platformContext(); in drawTextWithSpacing()
82 wxGraphicsContext* gc = dc->GetGraphicsContext(); in drawTextWithSpacing()
89 hdc = static_cast<HDC>(dc->GetHDC()); in drawTextWithSpacing()
/external/sonivox/jet_tools/JetCreator/
DJetSegGraph.py209 dc = wx.BufferedPaintDC(self, self._Buffer)
211 dc = wx.AutoBufferedPaintDC(self)
212 dc.Background = wx.Brush(wx.WHITE)
213 self.DoDrawing(dc)
215 def DoDrawing(self, dc=None): argument
217 if dc is None:
219 dc = wx.BufferedDC(wx.ClientDC(self), self._Buffer)
221 dc = wx.AutoBufferedPaintDC(self)
222 dc.Background = wx.Brush(wx.WHITE)
224 dc.Clear()
[all …]
/external/webkit/WebCore/platform/graphics/win/
DSimpleFontDataWin.cpp132 HDC dc = GetDC(0); in containsCharacters() local
138 langFontLink->GetFontCodePages(dc, m_font.hfont(), &fontCodePages); in containsCharacters()
150 ReleaseDC(0, dc); in containsCharacters()
163 HDC dc = GetDC(0); in determinePitch() local
164 SaveDC(dc); in determinePitch()
165 SelectObject(dc, m_font.hfont()); in determinePitch()
170 GetTextMetrics(dc, &tm); in determinePitch()
173 RestoreDC(dc, -1); in determinePitch()
174 ReleaseDC(0, dc); in determinePitch()
197 HDC dc = GetDC(0); in scriptFontProperties() local
[all …]
DGlyphPageTreeNodeCairoWin.cpp45 HDC dc = GetDC((HWND)0); in fill() local
46 SaveDC(dc); in fill()
47 SelectObject(dc, fontData->platformData().hfont()); in fill()
50 GetTextMetrics(dc, &tm); in fill()
53 DWORD result = GetGlyphIndices(dc, buffer, bufferLength, localGlyphBuffer, 0); in fill()
66 RestoreDC(dc, -1); in fill()
67 ReleaseDC(0, dc); in fill()
DSimpleFontDataCGWin.cpp74 HDC dc = GetDC(0); in platformInit() local
75 HGDIOBJ oldFont = SelectObject(dc, m_font.hfont()); in platformInit()
76 int faceLength = GetTextFace(dc, 0, 0); in platformInit()
78 GetTextFace(dc, faceLength, faceName.data()); in platformInit()
80 SelectObject(dc, oldFont); in platformInit()
81 ReleaseDC(0, dc); in platformInit()
DGraphicsContextCairoWin.cpp40 GraphicsContext::GraphicsContext(HDC dc, bool hasAlpha) in GraphicsContext() argument
44 if (dc) { in GraphicsContext()
45 cairo_surface_t* surface = cairo_win32_surface_create(dc); in GraphicsContext()
47 m_data->m_hdc = dc; in GraphicsContext()
DFontPlatformDataCGWin.cpp41 static CFStringRef getPostScriptName(CFStringRef faceName, HDC dc) in getPostScriptName() argument
54 DWORD bufferSize = GetFontData(dc, 'eman', 0, NULL, 0); // "name" backwards in getPostScriptName()
60 if (GetFontData(dc, 'eman', 0, buffer, bufferSize) == GDI_ERROR) in getPostScriptName()
/external/webkit/WebCore/platform/wx/
DRenderThemeWx.cpp242 wxDC* dc = static_cast<wxDC*>(i.context->platformContext()); in paintButton() local
256 wxRendererNative::Get().DrawPushButton(window, *dc, r, flags); in paintButton()
261 wxRendererNative::Get().DrawRadioButton(window, *dc, r, flags); in paintButton()
263 wxRenderer_DrawRadioButton(window, *dc, r, flags); in paintButton()
269 wxRendererNative::Get().DrawCheckBox(window, *dc, r, flags); in paintButton()
282 wxDC* dc = static_cast<wxDC*>(i.context->platformContext()); in paintTextField() local
284 wxRendererNative::Get().DrawTextCtrl(window, *dc, r, 0); in paintTextField()
286 wxRenderer_DrawTextCtrl(window, *dc, r, 0); in paintTextField()
304 wxDC* dc = static_cast<wxDC*>(i.context->platformContext()); in paintMenuList() local
317 wxRendererNative::Get().DrawChoice(window, *dc, r, flags); in paintMenuList()
[all …]
/external/webkit/WebCore/platform/win/
DDragImageCairoWin.cpp50 HBITMAP allocImage(HDC dc, IntSize size, CairoContextRef* targetRef) in allocImage() argument
63 HBITMAP hbmp = CreateDIBSection(dc, &bmpInfo, DIB_RGB_COLORS, &bits, 0, 0); in allocImage()
125 HDC dc = GetDC(0); in scaleDragImage() local
126 HDC dstDC = CreateCompatibleDC(dc); in scaleDragImage()
158 ReleaseDC(0, dc); in scaleDragImage()
165 HDC dc = GetDC(0); in createDragImageFromImage() local
166 HDC workingDC = CreateCompatibleDC(dc); in createDragImageFromImage()
194 ReleaseDC(0, dc); in createDragImageFromImage()
DDragImageCGWin.cpp45 HBITMAP allocImage(HDC dc, IntSize size, CGContextRef *targetRef) in allocImage() argument
56 hbmp = CreateDIBSection(dc, &bmpInfo, DIB_RGB_COLORS, &bits, 0, 0); in allocImage()
101 HDC dc = GetDC(0); in scaleDragImage() local
102 HDC dstDC = CreateCompatibleDC(dc); in scaleDragImage()
128 ReleaseDC(0, dc); in scaleDragImage()
135 HDC dc = GetDC(0); in createDragImageFromImage() local
136 HDC workingDC = CreateCompatibleDC(dc); in createDragImageFromImage()
167 ReleaseDC(0, dc); in createDragImageFromImage()
DCursorWin.cpp64 HDC dc = GetDC(0); in Cursor() local
65 HDC workingDC = CreateCompatibleDC(dc); in Cursor()
67 …OwnPtr<HBITMAP> hCursor(CreateDIBSection(dc, (BITMAPINFO *)&cursorImage, DIB_RGB_COLORS, 0, 0, 0)); in Cursor()
90 HDC andMaskDC = CreateCompatibleDC(dc); in Cursor()
91 HDC xorMaskDC = CreateCompatibleDC(dc); in Cursor()
92 OwnPtr<HBITMAP> hCursor(CreateDIBSection(dc, &cursorImage, DIB_RGB_COLORS, 0, 0, 0)); in Cursor()
98 OwnPtr<HBITMAP> xorMask(CreateCompatibleBitmap(dc, cursor.bmWidth, cursor.bmHeight)); in Cursor()
127 ReleaseDC(0, dc); in Cursor()
DPasteboardWin.cpp199 HDC dc = GetDC(0); in writeImage() local
202 HBITMAP resultBitmap = CreateCompatibleBitmap(dc, image->width(), image->height()); in writeImage()
212 HBITMAP coreBitmap = CreateDIBSection(dc, &bmInfo, DIB_RGB_COLORS, 0, 0, 0); in writeImage()
226 ReleaseDC(0, dc); in writeImage()
/external/skia/src/core/
DSkSpriteBlitter_RGB16.cpp33 uint16_t dc = *dst; in D16_S32A_Blend_Pixel_helper() local
38 dr = SkAlphaBlend(SkPacked32ToR16(sc), SkGetPackedR16(dc), src_scale); in D16_S32A_Blend_Pixel_helper()
39 dg = SkAlphaBlend(SkPacked32ToG16(sc), SkGetPackedG16(dc), src_scale); in D16_S32A_Blend_Pixel_helper()
40 db = SkAlphaBlend(SkPacked32ToB16(sc), SkGetPackedB16(dc), src_scale); in D16_S32A_Blend_Pixel_helper()
44 SkGetPackedR16(dc) * dst_scale) >> 8; in D16_S32A_Blend_Pixel_helper()
46 SkGetPackedG16(dc) * dst_scale) >> 8; in D16_S32A_Blend_Pixel_helper()
48 SkGetPackedB16(dc) * dst_scale) >> 8; in D16_S32A_Blend_Pixel_helper()
82 uint16_t dc = *dst; \
83 *dst = SkBlendRGB16(sc, dc, scale); \
104 uint16_t dc = *dst; \
[all …]
DSkBlitRow_D16.cpp98 uint16_t dc = *dst; in S32A_D565_Blend() local
103 dr = SkAlphaBlend(SkPacked32ToR16(sc), SkGetPackedR16(dc), src_scale); in S32A_D565_Blend()
104 dg = SkAlphaBlend(SkPacked32ToG16(sc), SkGetPackedG16(dc), src_scale); in S32A_D565_Blend()
105 db = SkAlphaBlend(SkPacked32ToB16(sc), SkGetPackedB16(dc), src_scale); in S32A_D565_Blend()
108 dr = (SkPacked32ToR16(sc) * src_scale + SkGetPackedR16(dc) * dst_scale) >> 8; in S32A_D565_Blend()
109 dg = (SkPacked32ToG16(sc) * src_scale + SkGetPackedG16(dc) * dst_scale) >> 8; in S32A_D565_Blend()
110 db = (SkPacked32ToB16(sc) * src_scale + SkGetPackedB16(dc) * dst_scale) >> 8; in S32A_D565_Blend()
/external/webkit/WebCore/platform/wx/wxcode/mac/carbon/
Dnon-kerned-drawing.cpp41 wxGCDC* dc = static_cast<wxGCDC*>(graphicsContext->platformContext()); in drawTextWithSpacing() local
43 wxDC* dc = graphicsContext->platformContext(); in drawTextWithSpacing()
48 dc->SetFont(wxfont); in drawTextWithSpacing()
49 dc->SetTextForeground(color); in drawTextWithSpacing()
63 dc->DrawText(text, (wxCoord)point.x(), int(point.y() - font->ascent())); in drawTextWithSpacing()
/external/webkit/WebCore/platform/wx/wxcode/gtk/
Dnon-kerned-drawing.cpp42 wxGCDC* dc = static_cast<wxGCDC*>(graphicsContext->platformContext()); in drawTextWithSpacing() local
44 wxDC* dc = graphicsContext->platformContext(); in drawTextWithSpacing()
49 dc->SetFont(wxfont); in drawTextWithSpacing()
50 dc->SetTextForeground(color); in drawTextWithSpacing()
65 dc->DrawText(text, (wxCoord)point.x(), ypoint); in drawTextWithSpacing()
/external/webkit/WebKit/win/WebCoreSupport/
DWebDragClient.cpp48 HBITMAP allocImage(HDC dc, IntSize size, PlatformGraphicsContext** targetRef);
219 HDC dc = GetDC(0); in createDragImageForLink() local
220 HDC workingDC = CreateCompatibleDC(dc); in createDragImageForLink()
222 ReleaseDC(0, dc); in createDragImageForLink()
230 ReleaseDC(0, dc); in createDragImageForLink()
261 ReleaseDC(0, dc); in createDragImageForLink()
/external/qemu/hw/
Ddevices.h41 void s1d13745_write(void *opaque, int dc, uint16_t value);
42 void s1d13745_write_block(void *opaque, int dc,
44 uint16_t s1d13745_read(void *opaque, int dc);
/external/qemu/target-arm/
Dtranslate.c8637 DisasContext dc1, *dc = &dc1; in gen_intermediate_code_internal() local
8651 dc->tb = tb; in gen_intermediate_code_internal()
8655 dc->is_jmp = DISAS_NEXT; in gen_intermediate_code_internal()
8656 dc->pc = pc_start; in gen_intermediate_code_internal()
8657 dc->singlestep_enabled = env->singlestep_enabled; in gen_intermediate_code_internal()
8658 dc->condjmp = 0; in gen_intermediate_code_internal()
8659 dc->thumb = env->thumb; in gen_intermediate_code_internal()
8660 dc->condexec_mask = (env->condexec_bits & 0xf) << 1; in gen_intermediate_code_internal()
8661 dc->condexec_cond = env->condexec_bits >> 4; in gen_intermediate_code_internal()
8662 dc->is_mem = 0; in gen_intermediate_code_internal()
[all …]

123