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);
|
||||
|
||||
enum {CL_DOUBLE, CL_UNIFIED_MEM, CL_VER_1_2};
|
||||
bool supportsFeature(int ftype);
|
||||
size_t computeUnits();
|
||||
bool supportsFeature(int ftype) const;
|
||||
size_t computeUnits() const;
|
||||
void* oclContext();
|
||||
void* oclCommandQueue();
|
||||
};
|
||||
|
@ -1013,7 +1013,7 @@ namespace cv
|
||||
programCache->releaseProgram();
|
||||
}
|
||||
|
||||
bool Context::supportsFeature(int ftype)
|
||||
bool Context::supportsFeature(int ftype) const
|
||||
{
|
||||
switch(ftype)
|
||||
{
|
||||
@ -1028,7 +1028,7 @@ namespace cv
|
||||
}
|
||||
}
|
||||
|
||||
size_t Context::computeUnits()
|
||||
size_t Context::computeUnits() const
|
||||
{
|
||||
return impl->maxComputeUnits;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user