[Impeller] removed operator overload (c++ style violation) (flutter/engine#47658)
[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
This commit is contained in:
@@ -206,9 +206,7 @@ struct Command : public ResourceBinder {
|
||||
|
||||
BufferView GetVertexBuffer() const;
|
||||
|
||||
constexpr explicit operator bool() const {
|
||||
return pipeline && pipeline->IsValid();
|
||||
}
|
||||
bool IsValid() const { return pipeline && pipeline->IsValid(); }
|
||||
|
||||
private:
|
||||
template <class T>
|
||||
|
||||
@@ -44,7 +44,7 @@ void RenderPass::SetLabel(std::string label) {
|
||||
}
|
||||
|
||||
bool RenderPass::AddCommand(Command&& command) {
|
||||
if (!command) {
|
||||
if (!command.IsValid()) {
|
||||
VALIDATION_LOG << "Attempted to add an invalid command to the render pass.";
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user