Commit 5ff5fdd7 authored by Ilya Lavrenov's avatar Ilya Lavrenov

marked some methods of ocl::Context as const

parent d64fb235
...@@ -158,8 +158,8 @@ namespace cv ...@@ -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 ...@@ -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 ...@@ -1028,7 +1028,7 @@ namespace cv
} }
} }
size_t Context::computeUnits() size_t Context::computeUnits() const
{ {
return impl->maxComputeUnits; return impl->maxComputeUnits;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment