marked some methods of ocl::Context as const

This commit is contained in:
Ilya Lavrenov 2013-09-24 13:17:09 +04:00
parent d64fb235f7
commit 5ff5fdd73d
2 changed files with 4 additions and 4 deletions

View File

@ -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();
};

View File

@ -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;
}