• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2022 Google LLC
3  *
4  * Use of this source code is governed by a BSD-style license that can be
5  * found in the LICENSE file.
6  */
7 
8 #include "src/sksl/tracing/SkRPDebugTrace.h"
9 
10 #include <sstream>
11 #include <utility>
12 
13 namespace SkSL {
14 
writeTrace(SkWStream * o) const15 void SkRPDebugTrace::writeTrace(SkWStream* o) const {
16     // Not yet implemented.
17 }
18 
dump(SkWStream * o) const19 void SkRPDebugTrace::dump(SkWStream* o) const {
20     // Not yet implemented.
21 }
22 
setSource(std::string source)23 void SkRPDebugTrace::setSource(std::string source) {
24     fSource.clear();
25     std::stringstream stream{std::move(source)};
26     while (stream.good()) {
27         fSource.push_back({});
28         std::getline(stream, fSource.back(), '\n');
29     }
30 }
31 
32 }  // namespace SkSL
33