@@ -45,7 +45,7 @@ class Rasterizer {
45
45
// storing a ready to use rasterizer.
46
46
//
47
47
// Returns:
48
- // A tensorflow::Status object storing tensorflow::Status::OK () on success,
48
+ // A tensorflow::Status object storing tensorflow::Status() on success,
49
49
// and an object of type tensorflow::errors otherwise.
50
50
template <typename T>
51
51
static tensorflow::Status Create (const int width, const int height,
@@ -72,7 +72,7 @@ class Rasterizer {
72
72
// storing a ready to use rasterizer.
73
73
//
74
74
// Returns:
75
- // A tensorflow::Status object storing tensorflow::Status::OK () on success,
75
+ // A tensorflow::Status object storing tensorflow::Status() on success,
76
76
// and an object of type tensorflow::errors otherwise.
77
77
template <typename T>
78
78
static tensorflow::Status Create (const int width, const int height,
@@ -94,7 +94,7 @@ class Rasterizer {
94
94
// Create.
95
95
//
96
96
// Returns:
97
- // A tensorflow::Status object storing tensorflow::Status::OK () on success,
97
+ // A tensorflow::Status object storing tensorflow::Status() on success,
98
98
// and an object of type tensorflow::errors otherwise.
99
99
virtual tensorflow::Status Render (int num_points, absl::Span<float > result);
100
100
virtual tensorflow::Status Render (int num_points,
@@ -107,7 +107,7 @@ class Rasterizer {
107
107
// * data: data to upload to the shader storage buffer.
108
108
//
109
109
// Returns:
110
- // A tensorflow::Status object storing tensorflow::Status::OK () on success,
110
+ // A tensorflow::Status object storing tensorflow::Status() on success,
111
111
// and an object of type tensorflow::errors otherwise.
112
112
template <typename T>
113
113
tensorflow::Status SetShaderStorageBuffer (const std::string& name,
@@ -126,7 +126,7 @@ class Rasterizer {
126
126
// * matrix: a buffer storing the matrix
127
127
//
128
128
// Returns:
129
- // A tensorflow::Status object storing tensorflow::Status::OK () on success,
129
+ // A tensorflow::Status object storing tensorflow::Status() on success,
130
130
// and an object of type tensorflow::errors otherwise.
131
131
virtual tensorflow::Status SetUniformMatrix (const std::string& name,
132
132
int num_columns, int num_rows,
@@ -192,7 +192,7 @@ tensorflow::Status Rasterizer::Create(const int width, const int height,
192
192
*rasterizer = std::unique_ptr<Rasterizer>(new Rasterizer (
193
193
std::move (program), std::move (render_targets), clear_red, clear_green,
194
194
clear_blue, clear_alpha, clear_depth, enable_cull_face));
195
- return tensorflow::Status::OK ();
195
+ return tensorflow::Status ();
196
196
}
197
197
198
198
template <typename T>
@@ -210,7 +210,7 @@ tensorflow::Status Rasterizer::RenderImpl(int num_points,
210
210
GLint slot;
211
211
if (program_->GetResourceProperty (name, GL_SHADER_STORAGE_BLOCK, 1 ,
212
212
&kProperty , 1 ,
213
- &slot) != tensorflow::Status::OK ())
213
+ &slot) != tensorflow::Status ())
214
214
// Buffer not found in program, so do nothing.
215
215
continue ;
216
216
TF_RETURN_IF_ERROR (buffer.second ->BindBufferBase (slot));
@@ -237,7 +237,7 @@ tensorflow::Status Rasterizer::RenderImpl(int num_points,
237
237
TF_RETURN_IF_ERROR (render_targets_->CopyPixelsInto (result));
238
238
239
239
// The program and framebuffer and released here.
240
- return tensorflow::Status::OK ();
240
+ return tensorflow::Status ();
241
241
}
242
242
243
243
template <typename T>
@@ -254,7 +254,7 @@ tensorflow::Status Rasterizer::SetShaderStorageBuffer(
254
254
// Upload the data to the shader storage buffer.
255
255
TF_RETURN_IF_ERROR (shader_storage_buffers_.at (name)->Upload (data));
256
256
257
- return tensorflow::Status::OK ();
257
+ return tensorflow::Status ();
258
258
}
259
259
260
260
#endif // THIRD_PARTY_PY_TENSORFLOW_GRAPHICS_RENDERING_OPENGL_TESTS_RASTERIZER_H_
0 commit comments