/external/webkit/Source/WebCore/platform/graphics/android/rendering/ |
D | BaseRenderer.cpp | 73 const TileRenderInfo& renderInfo, int updateCount, double renderDuration) in drawTileInfo() argument 81 snprintf(str, 256, " (%d,%d) %.2fx %d %.1fms", renderInfo.x, renderInfo.y, in drawTileInfo() 82 renderInfo.scale, updateCount, renderDuration); in drawTileInfo() 84 canvas->drawRectCoords(0, 0, renderInfo.tileSize.fWidth, 17, paint); in drawTileInfo() 90 void BaseRenderer::renderTiledContent(TileRenderInfo& renderInfo) in renderTiledContent() argument 93 const SkSize& tileSize = renderInfo.tileSize; in renderTiledContent() 95 Color *background = renderInfo.tilePainter->background(); in renderTiledContent() 99 setupCanvas(renderInfo, &canvas); in renderTiledContent() 113 canvas.translate(-renderInfo.x * tileSize.width(), -renderInfo.y * tileSize.height()); in renderTiledContent() 114 canvas.scale(renderInfo.scale, renderInfo.scale); in renderTiledContent() [all …]
|
D | RasterRenderer.cpp | 65 void RasterRenderer::setupCanvas(const TileRenderInfo& renderInfo, SkCanvas* canvas) in setupCanvas() argument 69 if (renderInfo.baseTile->isLayerTile()) { in setupCanvas() 77 Color* background = renderInfo.tilePainter->background(); in setupCanvas() 98 void RasterRenderer::renderingComplete(const TileRenderInfo& renderInfo, SkCanvas* canvas) in renderingComplete() argument 101 GLUtils::paintTextureWithBitmap(&renderInfo, m_bitmap); in renderingComplete() 104 void RasterRenderer::deviceCheckForPureColor(TileRenderInfo& renderInfo, SkCanvas* canvas) in deviceCheckForPureColor() argument 106 if (!renderInfo.isPureColor) { in deviceCheckForPureColor() 109 renderInfo.isPureColor = GLUtils::isPureColorBitmap(m_bitmap, renderInfo.pureColor); in deviceCheckForPureColor() 112 m_bitmapIsPureColor = renderInfo.isPureColor; in deviceCheckForPureColor() 113 m_bitmapPureColor = renderInfo.pureColor; in deviceCheckForPureColor()
|
D | GaneshRenderer.cpp | 57 void GaneshRenderer::setupCanvas(const TileRenderInfo& renderInfo, SkCanvas* canvas) in setupCanvas() argument 73 if (renderInfo.tileSize.width() == TilesManager::tileWidth() in setupCanvas() 74 && renderInfo.tileSize.height() == TilesManager::tileHeight()) { in setupCanvas() 75 device = ganesh->getDeviceForTile(renderInfo); in setupCanvas() 80 renderInfo.tileSize.width(), renderInfo.tileSize.height()); in setupCanvas() 87 void GaneshRenderer::renderingComplete(const TileRenderInfo& renderInfo, SkCanvas* canvas) in renderingComplete() argument 89 ALOGV("rendered to tile (%d,%d)", renderInfo.x, renderInfo.y); in renderingComplete() 98 tileQueue->addItemInTransferQueue(&renderInfo, GpuUpload, dummyBitmap); in renderingComplete()
|
D | BaseRenderer.h | 78 void renderTiledContent(TileRenderInfo& renderInfo); 89 virtual void setupCanvas(const TileRenderInfo& renderInfo, SkCanvas* canvas) = 0; 90 virtual void renderingComplete(const TileRenderInfo& renderInfo, SkCanvas* canvas) = 0; 91 void checkForPureColor(TileRenderInfo& renderInfo, InstrumentedPlatformCanvas& canvas); 94 virtual void deviceCheckForPureColor(TileRenderInfo& renderInfo, SkCanvas* canvas) = 0; 96 void drawTileInfo(SkCanvas* canvas, const TileRenderInfo& renderInfo,
|
D | TransferQueue.cpp | 392 void TransferQueue::updateQueueWithBitmap(const TileRenderInfo* renderInfo, in updateQueueWithBitmap() argument 396 if (!tryUpdateQueueWithBitmap(renderInfo, bitmap)) { in updateQueueWithBitmap() 399 Tile* tile = renderInfo->baseTile; in updateQueueWithBitmap() 405 bool TransferQueue::tryUpdateQueueWithBitmap(const TileRenderInfo* renderInfo, in tryUpdateQueueWithBitmap() argument 417 renderInfo->x, renderInfo->y); in tryUpdateQueueWithBitmap() 432 addItemInTransferQueue(renderInfo, currentUploadType, bitmap); in tryUpdateQueueWithBitmap() 435 renderInfo->x, renderInfo->y, renderInfo->baseTile); in tryUpdateQueueWithBitmap() 439 void TransferQueue::addItemInPureColorQueue(const TileRenderInfo* renderInfo) in addItemInPureColorQueue() argument 445 addItemCommon(renderInfo, GpuUpload, &data); in addItemInPureColorQueue() 446 data.pureColor = renderInfo->pureColor; in addItemInPureColorQueue() [all …]
|
D | GLUtils.cpp | 424 bool GLUtils::skipTransferForPureColor(const TileRenderInfo* renderInfo, in skipTransferForPureColor() argument 428 Tile* tilePtr = renderInfo->baseTile; in skipTransferForPureColor() 433 if (tileTexture && renderInfo->isPureColor) { in skipTransferForPureColor() 436 renderInfo->textureInfo->m_width = bitmap.width(); in skipTransferForPureColor() 437 renderInfo->textureInfo->m_height = bitmap.height(); in skipTransferForPureColor() 438 renderInfo->textureInfo->m_internalFormat = GL_RGBA; in skipTransferForPureColor() 440 TilesManager::instance()->transferQueue()->addItemInPureColorQueue(renderInfo); in skipTransferForPureColor() 448 void GLUtils::paintTextureWithBitmap(const TileRenderInfo* renderInfo, in paintTextureWithBitmap() argument 451 if (!renderInfo) in paintTextureWithBitmap() 453 const SkSize& requiredSize = renderInfo->tileSize; in paintTextureWithBitmap() [all …]
|
D | Tile.cpp | 329 TileRenderInfo renderInfo; in paintBitmap() local 330 renderInfo.x = x; in paintBitmap() 331 renderInfo.y = y; in paintBitmap() 332 renderInfo.scale = scale; in paintBitmap() 333 renderInfo.tileSize = texture->getSize(); in paintBitmap() 334 renderInfo.tilePainter = painter; in paintBitmap() 335 renderInfo.baseTile = this; in paintBitmap() 336 renderInfo.textureInfo = textureInfo; in paintBitmap() 338 const float tileWidth = renderInfo.tileSize.width(); in paintBitmap() 339 const float tileHeight = renderInfo.tileSize.height(); in paintBitmap() [all …]
|
D | GaneshContext.cpp | 74 SkDevice* GaneshContext::getDeviceForTile(const TileRenderInfo& renderInfo) in getDeviceForTile() argument 130 const float tileWidth = renderInfo.tileSize.width(); in getDeviceForTile() 131 const float tileHeight = renderInfo.tileSize.height(); in getDeviceForTile() 138 renderInfo.textureInfo->m_width = tileWidth; in getDeviceForTile() 139 renderInfo.textureInfo->m_height = tileHeight; in getDeviceForTile()
|
D | GaneshRenderer.h | 49 virtual void setupCanvas(const TileRenderInfo& renderInfo, SkCanvas* canvas); 50 virtual void renderingComplete(const TileRenderInfo& renderInfo, SkCanvas* canvas); 51 virtual void deviceCheckForPureColor(TileRenderInfo& renderInfo, SkCanvas* canvas) {} in deviceCheckForPureColor() argument
|
D | RasterRenderer.h | 49 virtual void setupCanvas(const TileRenderInfo& renderInfo, SkCanvas* canvas); 50 virtual void renderingComplete(const TileRenderInfo& renderInfo, SkCanvas* canvas); 51 virtual void deviceCheckForPureColor(TileRenderInfo& renderInfo, SkCanvas* canvas);
|
D | TransferQueue.h | 117 void updateQueueWithBitmap(const TileRenderInfo* renderInfo, 130 void addItemInPureColorQueue(const TileRenderInfo* renderInfo); 147 bool tryUpdateQueueWithBitmap(const TileRenderInfo* renderInfo, 174 void addItemCommon(const TileRenderInfo* renderInfo,
|
D | GLUtils.h | 83 static void paintTextureWithBitmap(const TileRenderInfo* renderInfo, SkBitmap& bitmap); 91 static bool skipTransferForPureColor(const TileRenderInfo* renderInfo,
|
D | GaneshContext.h | 42 SkDevice* getDeviceForTile(const TileRenderInfo& renderInfo);
|