本文整理汇总了C++中UNUSED_PARAM函数的典型用法代码示例。如果您正苦于以下问题:C++ UNUSED_PARAM函数的具体用法?C++ UNUSED_PARAM怎么用?C++ UNUSED_PARAM使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了UNUSED_PARAM函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Java_org_lwjgl_opengl_EXTGeometryShader4_glFramebufferTextureFaceEXT
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGeometryShader4_glFramebufferTextureFaceEXT(JNIEnv *__env, jclass clazz, jint target, jint attachment, jint texture, jint level, jint face) {
glFramebufferTextureFaceEXTPROC glFramebufferTextureFaceEXT = (glFramebufferTextureFaceEXTPROC)tlsGetFunction(1719);
UNUSED_PARAM(clazz)
glFramebufferTextureFaceEXT(target, attachment, texture, level, face);
}
示例2: ASSERT
//.........这里部分代码省略.........
return false;
gradientElement->updateAnimatedSVGAttribute(anyQName());
if (!m_gradient.contains(object))
m_gradient.set(object, new GradientData);
GradientData* gradientData = m_gradient.get(object);
// Create gradient object
if (!gradientData->gradient)
buildGradient(gradientData, gradientElement);
if (!gradientData->gradient)
return false;
// Draw gradient
context->save();
bool isPaintingText = resourceMode & ApplyToTextMode;
if (isPaintingText) {
#if PLATFORM(CG)
if (!createMaskAndSwapContextForTextGradient(context, m_savedContext, m_imageBuffer, object)) {
context->restore();
return false;
}
#endif
context->setTextDrawingMode(resourceMode & ApplyToFillMode ? cTextFill : cTextStroke);
}
AffineTransform transform;
// CG platforms will handle the gradient space transform for text after applying the
// resource, so don't apply it here. For non-CG platforms, we want the text bounding
// box applied to the gradient space transform now, so the gradient shader can use it.
#if PLATFORM(CG)
if (gradientData->boundingBoxMode && !isPaintingText) {
#else
if (gradientData->boundingBoxMode) {
#endif
FloatRect objectBoundingBox = object->objectBoundingBox();
transform.translate(objectBoundingBox.x(), objectBoundingBox.y());
transform.scaleNonUniform(objectBoundingBox.width(), objectBoundingBox.height());
}
transform.multiply(gradientData->transform);
gradientData->gradient->setGradientSpaceTransform(transform);
const SVGRenderStyle* svgStyle = style->svgStyle();
ASSERT(svgStyle);
if (resourceMode & ApplyToFillMode) {
context->setAlpha(svgStyle->fillOpacity());
context->setFillGradient(gradientData->gradient);
context->setFillRule(svgStyle->fillRule());
} else if (resourceMode & ApplyToStrokeMode) {
context->setAlpha(svgStyle->strokeOpacity());
context->setStrokeGradient(gradientData->gradient);
applyStrokeStyleToContext(context, style, object);
}
return true;
}
void RenderSVGResourceGradient::postApplyResource(RenderObject* object, GraphicsContext*& context, unsigned short resourceMode)
{
ASSERT(context);
ASSERT(resourceMode != ApplyToDefaultMode);
if (resourceMode & ApplyToTextMode) {
#if PLATFORM(CG)
// CG requires special handling for gradient on text
if (m_savedContext && m_gradient.contains(object)) {
GradientData* gradientData = m_gradient.get(object);
// Restore on-screen drawing context
context = m_savedContext;
m_savedContext = 0;
gradientData->gradient->setGradientSpaceTransform(clipToTextMask(context, m_imageBuffer, object, gradientData));
context->setFillGradient(gradientData->gradient);
const RenderObject* textRootBlock = findTextRootObject(object);
context->fillRect(textRootBlock->repaintRectInLocalCoordinates());
m_imageBuffer.clear();
}
#else
UNUSED_PARAM(object);
#endif
} else {
if (resourceMode & ApplyToFillMode)
context->fillPath();
else if (resourceMode & ApplyToStrokeMode)
context->strokePath();
}
context->restore();
}
示例3: UNUSED_PARAM
void PluginProcess::lowMemoryHandler(bool critical)
{
UNUSED_PARAM(critical);
if (shared().shouldTerminate())
shared().terminate();
}
示例4: Java_org_lwjgl_opengl_EXTGPUShader4_glVertexAttribI4uiEXT
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGPUShader4_glVertexAttribI4uiEXT(JNIEnv *__env, jclass clazz, jint index, jint x, jint y, jint z, jint w) {
glVertexAttribI4uiEXTPROC glVertexAttribI4uiEXT = (glVertexAttribI4uiEXTPROC)tlsGetFunction(1727);
UNUSED_PARAM(clazz)
glVertexAttribI4uiEXT(index, x, y, z, w);
}
示例5: FNLOG
void VOD_SessionControl::ReadSessionSocketCallback(int32_t fd, int16_t event, void *arg)
{
FNLOG(DL_MSP_ONDEMAND);
UNUSED_PARAM(fd)
UNUSED_PARAM(event)
UNUSED_PARAM(arg)
uint8_t *msgData = NULL;
uint32_t msgLen = 0;
VodDsmcc_Base *dsmccObj = NULL;
LOG(DLOGL_NOISE, " session response received on fd:%d ", fd);
int sockFd = GetFD();
if (sockFd != -1)
{
bool readStatus = VodDsmcc_Base::ReadMessageFromSocket(sockFd, &msgData,
&msgLen);
if (readStatus)
{
LOG(DLOGL_NORMAL, "%s:%d msgLen:%d ", __FUNCTION__, __LINE__, msgLen);
//get dsmcc response message type
dsmccObj = VodDsmcc_Base::GetMessageTypeObject(msgData, msgLen);
if (dsmccObj)
{
//parse dsmcc response
status parseStatus = dsmccObj->ParseDsmccMessageBody(msgData, msgLen);
if (parseStatus == E_TRUE)
{
LOG(DLOGL_REALLY_NOISY, "DSMCC- message id:%x : transId %x ", dsmccObj->GetMessageId(), dsmccObj->GetTransactionId());
bool found = false;
unsigned int sessId = VOD_SessionControl::getSessionNumber(dsmccObj);
ActiveVodSessionMap::iterator itr;
for (itr = mActiveVodSessionMap.begin(); itr != mActiveVodSessionMap.end(); ++itr)
{
LOG(DLOGL_NOISE, " itr->first %d ", itr->first);
if (itr->first == sessId)
{
found = true;
break;
}
}
LOG(DLOGL_NOISE, "sessId: %d found: %d", sessId, found);
if (found)
{
itr->second->handleReadSessionData(dsmccObj);
}
}
else
{
LOG(DLOGL_ERROR, " ParseDsmccMessageBody failed");
}
}
}
else
{
LOG(DLOGL_ERROR, "warning ReadMessageFromSocket failed");
}
}
else
{
LOG(DLOGL_ERROR, "Invalid sockFd ");
}
}
示例6: Java_org_lwjgl_opengl_EXTGPUShader4_nglGetUniformuivEXT__IIJ
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGPUShader4_nglGetUniformuivEXT__IIJ(JNIEnv *__env, jclass clazz, jint program, jint location, jlong paramsAddress) {
glGetUniformuivEXTPROC glGetUniformuivEXT = (glGetUniformuivEXTPROC)tlsGetFunction(1743);
intptr_t params = (intptr_t)paramsAddress;
UNUSED_PARAM(clazz)
glGetUniformuivEXT(program, location, params);
}
示例7: Java_org_lwjgl_opengl_EXTGPUShader4_glUniform4uiEXT
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGPUShader4_glUniform4uiEXT(JNIEnv *__env, jclass clazz, jint location, jint v0, jint v1, jint v2, jint v3) {
glUniform4uiEXTPROC glUniform4uiEXT = (glUniform4uiEXTPROC)tlsGetFunction(1749);
UNUSED_PARAM(clazz)
glUniform4uiEXT(location, v0, v1, v2, v3);
}
示例8: LOG
void MediaPlayerPrivateAVFoundation::timeChanged(double time)
{
LOG(Media, "MediaPlayerPrivateAVFoundation::timeChanged(%p) - time = %f", this, time);
UNUSED_PARAM(time);
}
示例9: UNUSED_PARAM
void GraphicsContext3D::vertexAttribDivisor(GC3Duint index, GC3Duint divisor)
{
UNUSED_PARAM(index);
UNUSED_PARAM(divisor);
}
示例10: qsort
//.........这里部分代码省略.........
qsort(opcodeSampleInfo, numOpcodeIDs, sizeof(OpcodeSampleInfo), compareOpcodeIndicesSampling);
// (2) Print Opcode sampling results.
dataLog("\nBytecode samples [*]\n");
dataLog(" sample %% of %% of | cti cti %%\n");
dataLog("opcode count VM total | count of self\n");
dataLog("------------------------------------------------------- | ----------------\n");
for (int i = 0; i < numOpcodeIDs; ++i) {
long long count = opcodeSampleInfo[i].count;
if (!count)
continue;
OpcodeID opcodeID = opcodeSampleInfo[i].opcode;
const char* opcodeName = opcodeNames[opcodeID];
const char* opcodePadding = padOpcodeName(opcodeID, 28);
double percentOfVM = (static_cast<double>(count) * 100) / m_opcodeSampleCount;
double percentOfTotal = (static_cast<double>(count) * 100) / m_sampleCount;
long long countInCTIFunctions = opcodeSampleInfo[i].countInCTIFunctions;
double percentInCTIFunctions = (static_cast<double>(countInCTIFunctions) * 100) / count;
debugDebugPrintf("%s:%s%-6lld %.3f%%\t%.3f%%\t | %-6lld %.3f%%\n", opcodeName, opcodePadding, count, percentOfVM, percentOfTotal, countInCTIFunctions, percentInCTIFunctions);
}
dataLog("\n[*] Samples inside host code are not charged to any Bytecode.\n\n");
dataLog("\tSamples inside VM:\t\t%lld / %lld (%.3f%%)\n", m_opcodeSampleCount, m_sampleCount, (static_cast<double>(m_opcodeSampleCount) * 100) / m_sampleCount);
dataLog("\tSamples inside host code:\t%lld / %lld (%.3f%%)\n\n", m_sampleCount - m_opcodeSampleCount, m_sampleCount, (static_cast<double>(m_sampleCount - m_opcodeSampleCount) * 100) / m_sampleCount);
dataLog("\tsample count:\tsamples inside this opcode\n");
dataLog("\t%% of VM:\tsample count / all opcode samples\n");
dataLog("\t%% of total:\tsample count / all samples\n");
dataLog("\t--------------\n");
dataLog("\tcti count:\tsamples inside a CTI function called by this opcode\n");
dataLog("\tcti %% of self:\tcti count / sample count\n");
#if ENABLE(CODEBLOCK_SAMPLING)
// (3) Build and sort 'codeBlockSamples' array.
int scopeCount = m_scopeSampleMap->size();
Vector<ScriptSampleRecord*> codeBlockSamples(scopeCount);
ScriptSampleRecordMap::iterator iter = m_scopeSampleMap->begin();
for (int i = 0; i < scopeCount; ++i, ++iter)
codeBlockSamples[i] = iter->second.get();
qsort(codeBlockSamples.begin(), scopeCount, sizeof(ScriptSampleRecord*), compareScriptSampleRecords);
// (4) Print data from 'codeBlockSamples' array.
dataLog("\nCodeBlock samples\n\n");
for (int i = 0; i < scopeCount; ++i) {
ScriptSampleRecord* record = codeBlockSamples[i];
CodeBlock* codeBlock = record->m_codeBlock;
double blockPercent = (record->m_sampleCount * 100.0) / m_sampleCount;
if (blockPercent >= 1) {
//Instruction* code = codeBlock->instructions().begin();
dataLog("#%d: %s:%d: %d / %lld (%.3f%%)\n", i + 1, record->m_executable->sourceURL().utf8().data(), codeBlock->lineNumberForBytecodeOffset(0), record->m_sampleCount, m_sampleCount, blockPercent);
if (i < 10) {
HashMap<unsigned,unsigned> lineCounts;
codeBlock->dump(exec);
dataLog(" Opcode and line number samples [*]\n\n");
for (unsigned op = 0; op < record->m_size; ++op) {
int count = record->m_samples[op];
if (count) {
dataLog(" [% 4d] has sample count: % 4d\n", op, count);
unsigned line = codeBlock->lineNumberForBytecodeOffset(op);
lineCounts.set(line, (lineCounts.contains(line) ? lineCounts.get(line) : 0) + count);
}
}
dataLog("\n");
int linesCount = lineCounts.size();
Vector<LineCountInfo> lineCountInfo(linesCount);
int lineno = 0;
for (HashMap<unsigned,unsigned>::iterator iter = lineCounts.begin(); iter != lineCounts.end(); ++iter, ++lineno) {
lineCountInfo[lineno].line = iter->first;
lineCountInfo[lineno].count = iter->second;
}
qsort(lineCountInfo.begin(), linesCount, sizeof(LineCountInfo), compareLineCountInfoSampling);
for (lineno = 0; lineno < linesCount; ++lineno) {
dataLog(" Line #%d has sample count %d.\n", lineCountInfo[lineno].line, lineCountInfo[lineno].count);
}
dataLog("\n");
dataLog(" [*] Samples inside host code are charged to the calling Bytecode.\n");
dataLog(" Samples on a call / return boundary are not charged to a specific opcode or line.\n\n");
dataLog(" Samples on a call / return boundary: %d / %d (%.3f%%)\n\n", record->m_sampleCount - record->m_opcodeSampleCount, record->m_sampleCount, (static_cast<double>(record->m_sampleCount - record->m_opcodeSampleCount) * 100) / record->m_sampleCount);
}
}
}
#else
UNUSED_PARAM(exec);
#endif
}
示例11: webkit_dom_html_head_element_init
static void webkit_dom_html_head_element_init(WebKitDOMHTMLHeadElement* request)
{
UNUSED_PARAM(request);
}
示例12: GenericMovementBehavior
KickToGoal::KickToGoal(const ParameterList& list)
: GenericMovementBehavior(list)
{
UNUSED_PARAM(list);
state = goingBehind;
}
示例13: Java_org_lwjgl_opengl_EXTTimerQuery_nglGetQueryObjectui64vEXT__IIJ
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTTimerQuery_nglGetQueryObjectui64vEXT__IIJ(JNIEnv *__env, jclass clazz, jint id, jint pname, jlong paramsAddress) {
glGetQueryObjectui64vEXTPROC glGetQueryObjectui64vEXT = (glGetQueryObjectui64vEXTPROC)tlsGetFunction(1822);
intptr_t params = (intptr_t)paramsAddress;
UNUSED_PARAM(clazz)
glGetQueryObjectui64vEXT(id, pname, params);
}
示例14: Java_org_lwjgl_opengl_EXTGPUShader4_nglVertexAttribIPointerEXT__IIIIJ
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTGPUShader4_nglVertexAttribIPointerEXT__IIIIJ(JNIEnv *__env, jclass clazz, jint index, jint size, jint type, jint stride, jlong pointerAddress) {
glVertexAttribIPointerEXTPROC glVertexAttribIPointerEXT = (glVertexAttribIPointerEXTPROC)tlsGetFunction(1740);
intptr_t pointer = (intptr_t)pointerAddress;
UNUSED_PARAM(clazz)
glVertexAttribIPointerEXT(index, size, type, stride, pointer);
}
示例15: UNUSED_PARAM
bool WebPageProxy::accessibilityObjectReadByPoint(const WebCore::IntPoint& point)
{
UNUSED_PARAM(point);
notImplemented();
return false;
}