forked from flutter/flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Turn on full-screen 4xMSAA by default and additional render target va…
…lidations.
- Loading branch information
1 parent
ed8b78a
commit 026dcd1
Showing
18 changed files
with
310 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
#pragma once | ||
|
||
#include "impeller/base/strings.h" | ||
#include "impeller/base/validation.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright 2013 The Flutter Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "flutter/impeller/base/validation.h" | ||
|
||
#include "flutter/fml/logging.h" | ||
|
||
namespace impeller { | ||
|
||
ValidationLog::ValidationLog() = default; | ||
|
||
ValidationLog::~ValidationLog() { | ||
FML_LOG(ERROR) << stream_.str(); | ||
ImpellerValidationBreak(); | ||
} | ||
|
||
std::ostream& ValidationLog::GetStream() { | ||
return stream_; | ||
} | ||
|
||
void ImpellerValidationBreak() { | ||
// Nothing to do. Exists for the debugger. | ||
FML_LOG(ERROR) << "Break on " << __FUNCTION__ | ||
<< " to inspect point of failure."; | ||
} | ||
|
||
} // namespace impeller |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright 2013 The Flutter Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#pragma once | ||
|
||
#include <sstream> | ||
|
||
#include "flutter/fml/macros.h" | ||
|
||
namespace impeller { | ||
|
||
class ValidationLog { | ||
public: | ||
ValidationLog(); | ||
|
||
~ValidationLog(); | ||
|
||
std::ostream& GetStream(); | ||
|
||
private: | ||
std::ostringstream stream_; | ||
|
||
FML_DISALLOW_COPY_ASSIGN_AND_MOVE(ValidationLog); | ||
}; | ||
|
||
void ImpellerValidationBreak(); | ||
|
||
} // namespace impeller | ||
|
||
#define VALIDATION_LOG ::impeller::ValidationLog{}.GetStream() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.