/external/replicaisland/src/com/replica/replicaisland/ |
H A D | TiledVertexGrid.java | 40 public TiledVertexGrid(Texture texture, int width, int height, int tileWidth, int tileHeight) { argument 44 mWidth = width; 59 private Grid generateGrid(int width, int height, int startTileX, int startTileY) { argument 62 final int tilesAcross = width / tileWidth; 65 final float texelWidth = 1.0f / texture.width; 67 final int textureTilesAcross = texture.width / tileWidth; 99 textureOffsetX > texture.width - tileWidth ||
|
/external/skia/gm/ |
H A D | arithmode.cpp | 76 SkScalar width = paint.measureText(str.c_str(), str.size()); local 78 x += width + SkIntToScalar(10); 117 SkScalar gap = SkIntToScalar(src.width() + 20);
|
/external/skia/include/core/ |
H A D | SkDevice.h | 40 * based on the config and the width. 44 * @param width width (in pixels) of the device 50 SkDevice(SkBitmap::Config config, int width, int height, bool isOpaque = false); 59 * @param width width of the device to create 66 int width, int height, 78 /** Return the width of the device (in pixels). 80 virtual int width() const { return fBitmap.width(); } function in class:SkDevice [all...] |
/external/skia/include/gpu/ |
H A D | GrRenderTarget.h | 38 * @return the width of the rendertarget 40 int width() const { return fWidth; } function in class:GrRenderTarget 130 * @param width width of rectangle to read in pixels. 140 bool readPixels(int left, int top, int width, int height, 148 * @param width width of rectangle to write in pixels. 155 void writePixels(int left, int top, int width, int height, 177 int width, 184 , fWidth(width) 175 GrRenderTarget(GrGpu* gpu, GrTexture* texture, int width, int height, GrPixelConfig config, int sampleCnt) argument [all...] |
/external/skia/samplecode/ |
H A D | SampleCircle.cpp | 49 void circle(SkCanvas* canvas, int width, bool aa) { argument 53 if (width < 0) { 57 paint.setStrokeWidth(SkIntToScalar(width)); 63 for (int width = -1; width <= 1; width++) { 65 circle(canvas, width, false); 67 circle(canvas, width, true);
|
H A D | SampleDither.cpp | 24 static void draw_sweep(SkCanvas* c, int width, int height, SkScalar angle) { argument 30 p.setStrokeWidth(SkIntToScalar(width/10)); 33 r.set(0, 0, SkIntToScalar(width), SkIntToScalar(height)); 56 SkScalar radius = r.width() / 2; 83 draw_sweep(&c, bm->width(), bm->height(), 0); 93 for (int x = 0; x < bm.width(); x++) { 148 const SkScalar DX = SkIntToScalar(fBM.width() + 10); 167 draw_sweep(canvas, fBM.width(), fBM.height(), fAngle); 169 draw_sweep(canvas, fBM.width()>>1, fBM.height()>>1, fAngle); 171 draw_sweep(canvas, fBM.width()>> [all...] |
H A D | SampleEncode.cpp | 28 const int width = 98; local 32 device.setConfig(SkBitmap::kARGB_8888_Config, width, height); 41 canvas.drawCircle(SkIntToScalar(width)/2, SkIntToScalar(height)/2, 42 SkIntToScalar(width)/2, paint); 44 bm->setConfig(config, width, height); 52 for (int x = 0; x < width; x++) { 72 for (int x = 0; x < width; x++) { 183 x + SkIntToScalar(fBitmaps[i].width()) / 2, 0, 202 x += SkIntToScalar(fBitmaps[i].width() + SPACER);
|
/external/skia/src/core/ |
H A D | SkPicture.cpp | 141 SkCanvas* SkPicture::beginRecording(int width, int height, argument 155 fWidth = width; 159 bm.setConfig(SkBitmap::kNo_Config, width, height);
|
/external/skia/src/effects/ |
H A D | Sk1DPathEffect.cpp | 13 bool Sk1DPathEffect::filterPath(SkPath* dst, const SkPath& src, SkScalar* width) { argument 68 SkScalar* width) { 70 *width = -1; 71 return this->INHERITED::filterPath(dst, src, width); 67 filterPath(SkPath* dst, const SkPath& src, SkScalar* width) argument
|
H A D | Sk2DPathEffect.cpp | 34 bool Sk2DPathEffect::filterPath(SkPath* dst, const SkPath& src, SkScalar* width) { argument
|
H A D | SkDashPathEffect.cpp | 78 SkScalar* width) { 80 if (*width < 0 || fInitialDashLength < 0) { 77 filterPath(SkPath* dst, const SkPath& src, SkScalar* width) argument
|
/external/skia/src/gpu/ |
H A D | GrRectanizer.cpp | 30 return fAreaSoFar / ((float)this->width() * this->height()); 42 bool canAddWidth(int width, int containerWidth) const { argument 43 return fLoc.fX + width <= containerWidth; 68 bool GrRectanizerPow2::addRect(int width, int height, GrIPoint16* loc) { argument 69 if ((unsigned)width > (unsigned)this->width() || 74 int32_t area = width * height; 95 if (!row->canAddWidth(width, this->width())) { 106 GrAssert(row->canAddWidth(width, thi 119 Factory(int width, int height) argument [all...] |
H A D | GrRectanizer_fifo.cpp | 30 return fAreaSoFar / ((float)this->width() * this->height()); 42 bool canAddWidth(int width, int containerWidth) const { argument 43 return fLoc.fX + width <= containerWidth; 68 bool GrRectanizerFIFO::addRect(int width, int height, GrIPoint16* loc) { argument 69 if ((unsigned)width > (unsigned)this->width() || 74 int32_t area = width * height; 95 if (!row->canAddWidth(width, this->width())) { 106 GrAssert(row->canAddWidth(width, thi 119 Factory(int width, int height) argument [all...] |
H A D | SkGr.cpp | 42 if (bitmap.width() == bitmap.rowBytes()) { 46 size_t width = bitmap.width(); local 50 memcpy(dst, src, width); 52 dst += width; 76 bitmap->width(), 86 bitmap->width(), bitmap->height())) { 87 size_t imagesize = bitmap->width() * bitmap->height() + 93 // our compressed data will be trimmed, so pass width() for its 98 bitmap->width()); [all...] |
H A D | SkGrTexturePixelRef.cpp | 62 desc.fWidth = texture->width(); 100 int left, top, width, height; local 103 width = subset->width(); 108 width = fTexture->width(); 112 dst->setConfig(SkBitmap::kARGB_8888_Config, width, height); 116 return fTexture->readPixels(left, top, width, height, 157 int left, top, width, height; local 160 width [all...] |
/external/skia/src/images/ |
H A D | SkFlipPixelRef.cpp | 12 SkFlipPixelRef::SkFlipPixelRef(SkBitmap::Config config, int width, int height) argument 13 : fFlipper(width, height) { 15 fSize = SkBitmap::ComputeSize(config, width, height); 30 device->setConfig(fConfig, fFlipper.width(), fFlipper.height()); 94 const size_t bytes = rect.width() << shift; 126 const SkIRect bounds = {0, 0, dst.width(), dst.height()};
|
H A D | SkImageDecoder_wbmp.cpp | 110 int width = head.fWidth; local 115 decodedBitmap->setConfig(SkBitmap::kIndex8_Config, width, height); 126 decodedBitmap->setConfig(SkBitmap::kIndex8_Config, width, height); 142 size_t srcRB = SkAlign8(width) >> 3; 151 expand_bits_to_bytes(dst, src, width);
|
/external/skia/src/ports/ |
H A D | SkImageDecoder_CG.cpp | 66 const int width = CGImageGetWidth(image); local 68 bm->setConfig(SkBitmap::kARGB_8888_Config, width, height); 82 CGContextRef cg = CGBitmapContextCreate(bm->getPixels(), width, height, 84 CGContextDrawImage(cg, CGRectMake(0, 0, width, height), image);
|
H A D | SkImageDecoder_WIC.cpp | 84 UINT width; local 87 hr = piBitmapSourceOriginal->GetSize(&width, &height); 92 bm->setConfig(SkBitmap::kARGB_8888_Config, width, height); 259 const UINT width = bitmap->width(); local 262 hr = piBitmapFrameEncode->SetSize(width, height);
|
/external/skia/src/utils/unix/ |
H A D | SkOSWindow_Unix.cpp | 112 this->resize(evt.xconfigure.width, evt.xconfigure.height); 183 glViewport(0, 0, SkScalarRound(this->width()), SkScalarRound(this->height())); 245 image.width = bitmap.width(); 254 image.bytes_per_line = bitmap.rowBytes() - bitmap.width() * bitmap.bytesPerPixel(); 263 int width = bitmap.width(); local 269 XPutImage(fUnixWindow.fDisplay, fUnixWindow.fWin, fUnixWindow.fGc, &image, 0, 0, 0, 0, width, height);
|
/external/skia/src/views/ |
H A D | SkImageView.cpp | 159 dst.set(0, 0, this->width(), this->height()); 235 SkScalar width, height; local 239 if (SkScalarIsNaN(width = fData.fAnim->getScalar("dimensions", "x")) || 243 width = this->width(); 249 width = SkIntToScalar(fData.fBitmap->width()); 252 bounds->set(0, 0, width, height);
|
H A D | SkStaticTextView.cpp | 39 SkScalar width = fPaint.measureText(fText.c_str(), fText.size()); local 40 this->setWidth(width + fMargin.fX * 2); 44 SkScalar width = this->width() - fMargin.fX * 2; local 45 int lines = width > 0 ? SkTextLineBreaker::CountLines(fText.c_str(), fText.size(), fPaint, width) : 0; 147 box.setBox(fMargin.fX, fMargin.fY, this->width() - fMargin.fX, this->height() - fMargin.fY); 157 if ((index = dom.findList(node, "mode", "fixed,auto-width,auto-height")) >= 0)
|
/external/smali/util/src/main/java/ds/tree/ |
H A D | RadixTreeImpl.java | 417 public void formatTo(Formatter formatter, int flags, int width, int precision) { argument
|
/external/tcpdump/ |
H A D | print-dvmrp.c | 174 register u_int i, width; local 183 width = 1; 185 width = 2; 187 width = 3; 189 width = 4; 195 if (bp + width + 1 > ep) { 199 if (len < width + 1) { 204 for (i = 0; i < width; ++i) { 217 len -= width + 1;
|
/external/v8/src/arm/ |
H A D | macro-assembler-arm.cc | 296 void MacroAssembler::Ubfx(Register dst, Register src1, int lsb, int width, argument 300 int mask = (1 << (width + lsb)) - 1 - ((1 << lsb) - 1); 306 ubfx(dst, src1, lsb, width, cond); 311 void MacroAssembler::Sbfx(Register dst, Register src1, int lsb, int width, 315 int mask = (1 << (width + lsb)) - 1 - ((1 << lsb) - 1); 317 int shift_up = 32 - lsb - width; 326 sbfx(dst, src1, lsb, width, cond); 335 int width, 338 ASSERT(0 <= width && width < 3 [all...] |