@@ -45,7 +45,7 @@ class Rasterizer {
4545 // storing a ready to use rasterizer.
4646 //
4747 // Returns:
48- // A tensorflow::Status object storing tensorflow::Status::OK () on success,
48+ // A tensorflow::Status object storing tensorflow::Status() on success,
4949 // and an object of type tensorflow::errors otherwise.
5050 template <typename T>
5151 static tensorflow::Status Create (const int width, const int height,
@@ -72,7 +72,7 @@ class Rasterizer {
7272 // storing a ready to use rasterizer.
7373 //
7474 // Returns:
75- // A tensorflow::Status object storing tensorflow::Status::OK () on success,
75+ // A tensorflow::Status object storing tensorflow::Status() on success,
7676 // and an object of type tensorflow::errors otherwise.
7777 template <typename T>
7878 static tensorflow::Status Create (const int width, const int height,
@@ -94,7 +94,7 @@ class Rasterizer {
9494 // Create.
9595 //
9696 // Returns:
97- // A tensorflow::Status object storing tensorflow::Status::OK () on success,
97+ // A tensorflow::Status object storing tensorflow::Status() on success,
9898 // and an object of type tensorflow::errors otherwise.
9999 virtual tensorflow::Status Render (int num_points, absl::Span<float > result);
100100 virtual tensorflow::Status Render (int num_points,
@@ -107,7 +107,7 @@ class Rasterizer {
107107 // * data: data to upload to the shader storage buffer.
108108 //
109109 // Returns:
110- // A tensorflow::Status object storing tensorflow::Status::OK () on success,
110+ // A tensorflow::Status object storing tensorflow::Status() on success,
111111 // and an object of type tensorflow::errors otherwise.
112112 template <typename T>
113113 tensorflow::Status SetShaderStorageBuffer (const std::string& name,
@@ -126,7 +126,7 @@ class Rasterizer {
126126 // * matrix: a buffer storing the matrix
127127 //
128128 // Returns:
129- // A tensorflow::Status object storing tensorflow::Status::OK () on success,
129+ // A tensorflow::Status object storing tensorflow::Status() on success,
130130 // and an object of type tensorflow::errors otherwise.
131131 virtual tensorflow::Status SetUniformMatrix (const std::string& name,
132132 int num_columns, int num_rows,
@@ -192,7 +192,7 @@ tensorflow::Status Rasterizer::Create(const int width, const int height,
192192 *rasterizer = std::unique_ptr<Rasterizer>(new Rasterizer (
193193 std::move (program), std::move (render_targets), clear_red, clear_green,
194194 clear_blue, clear_alpha, clear_depth, enable_cull_face));
195- return tensorflow::Status::OK ();
195+ return tensorflow::Status ();
196196}
197197
198198template <typename T>
@@ -210,7 +210,7 @@ tensorflow::Status Rasterizer::RenderImpl(int num_points,
210210 GLint slot;
211211 if (program_->GetResourceProperty (name, GL_SHADER_STORAGE_BLOCK, 1 ,
212212 &kProperty , 1 ,
213- &slot) != tensorflow::Status::OK ())
213+ &slot) != tensorflow::Status ())
214214 // Buffer not found in program, so do nothing.
215215 continue ;
216216 TF_RETURN_IF_ERROR (buffer.second ->BindBufferBase (slot));
@@ -237,7 +237,7 @@ tensorflow::Status Rasterizer::RenderImpl(int num_points,
237237 TF_RETURN_IF_ERROR (render_targets_->CopyPixelsInto (result));
238238
239239 // The program and framebuffer and released here.
240- return tensorflow::Status::OK ();
240+ return tensorflow::Status ();
241241}
242242
243243template <typename T>
@@ -254,7 +254,7 @@ tensorflow::Status Rasterizer::SetShaderStorageBuffer(
254254 // Upload the data to the shader storage buffer.
255255 TF_RETURN_IF_ERROR (shader_storage_buffers_.at (name)->Upload (data));
256256
257- return tensorflow::Status::OK ();
257+ return tensorflow::Status ();
258258}
259259
260260#endif // THIRD_PARTY_PY_TENSORFLOW_GRAPHICS_RENDERING_OPENGL_TESTS_RASTERIZER_H_
0 commit comments