OmniSciDB  6686921089
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RenderAllocator.cpp
Go to the documentation of this file.
1 /*
2  * Copyright 2017 MapD Technologies, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #include "../RenderAllocator.h"
18 #include "../../GpuInitGroups.h"
19 #include "Logger/Logger.h"
20 
21 RenderAllocator::RenderAllocator(int8_t* preallocated_ptr,
22  const size_t preallocated_size,
23  const size_t device_id)
24  : preallocated_size_{preallocated_size}, device_id_{device_id} {
25  CHECK(false);
26 }
27 
28 int8_t* RenderAllocator::alloc(const size_t bytes) {
29  CHECK(false);
30  return 0;
31 }
32 
34  CHECK(false);
35 }
36 
38  CHECK(false);
39  return 0;
40 }
41 
43  CHECK(false);
44  return 0;
45 }
46 
48  CHECK(false);
49  return 0;
50 }
51 
52 int8_t* RenderAllocator::getBasePtr() const {
53  CHECK(false);
54  return nullptr;
55 }
56 
58  ::QueryRenderer::QueryRenderManager* render_manager) {
59  CHECK(false);
60 }
61 
63 
65  CHECK(false);
66  return nullptr;
67 }
68 
70  CHECK(false);
71  return nullptr;
72 }
73 
75  const size_t num_data_bytes,
76  const size_t device_id) {
77  CHECK(false);
78 }
79 
81  const std::shared_ptr<::QueryRenderer::QueryDataLayout>& query_data_layout) {
82  CHECK(false);
83 }
84 
86  const std::shared_ptr<::QueryRenderer::QueryDataLayout>& query_data_layout) {
87  CHECK(false);
88 }
int8_t * alloc(const size_t bytes) final
RenderAllocator * getRenderAllocator(size_t device_id)
RenderAllocator(int8_t *preallocated_ptr, const size_t preallocated_size, const size_t device_id)
size_t getCurrentChunkOffset() const
size_t getAllocatedSize() const
void bufferData(int8_t *data, const size_t num_data_bytes, const size_t device_id)
RenderAllocator * operator[](size_t device_id)
size_t getCurrentChunkSize() const
#define CHECK(condition)
Definition: Logger.h:209
RenderAllocatorMap(::QueryRenderer::QueryRenderManager *render_manager)
void prepForRendering(const std::shared_ptr<::QueryRenderer::QueryDataLayout > &query_data_layout)
int8_t * getBasePtr() const
void setDataLayout(const std::shared_ptr<::QueryRenderer::QueryDataLayout > &query_data_layout)