marked some methods of ocl::Context as const
This commit is contained in:
parent
d64fb235f7
commit
5ff5fdd73d
@ -158,8 +158,8 @@ namespace cv
|
|||||||
static void setContext(Info &oclinfo);
|
static void setContext(Info &oclinfo);
|
||||||
|
|
||||||
enum {CL_DOUBLE, CL_UNIFIED_MEM, CL_VER_1_2};
|
enum {CL_DOUBLE, CL_UNIFIED_MEM, CL_VER_1_2};
|
||||||
bool supportsFeature(int ftype);
|
bool supportsFeature(int ftype) const;
|
||||||
size_t computeUnits();
|
size_t computeUnits() const;
|
||||||
void* oclContext();
|
void* oclContext();
|
||||||
void* oclCommandQueue();
|
void* oclCommandQueue();
|
||||||
};
|
};
|
||||||
|
@ -1013,7 +1013,7 @@ namespace cv
|
|||||||
programCache->releaseProgram();
|
programCache->releaseProgram();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Context::supportsFeature(int ftype)
|
bool Context::supportsFeature(int ftype) const
|
||||||
{
|
{
|
||||||
switch(ftype)
|
switch(ftype)
|
||||||
{
|
{
|
||||||
@ -1028,7 +1028,7 @@ namespace cv
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t Context::computeUnits()
|
size_t Context::computeUnits() const
|
||||||
{
|
{
|
||||||
return impl->maxComputeUnits;
|
return impl->maxComputeUnits;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user