Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(829)

Side by Side Diff: third_party/WebKit/Source/platform/testing/PaintPrinters.cpp

Issue 1379883003: Create PaintChunk and begin writing code to build paint chunks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "config.h"
6 #include "platform/testing/PaintPrinters.h"
7
8 #include "platform/graphics/paint/PaintChunk.h"
9 #include "platform/graphics/paint/PaintProperties.h"
10 #include <ostream> // NOLINT
11
12 namespace blink {
13
14 void PrintTo(const PaintChunk& chunk, std::ostream* os)
15 {
16 *os << "PaintChunk(begin=" << chunk.beginIndex
17 << ", end=" << chunk.endIndex
18 << ", props=";
19 PrintTo(chunk.properties, os);
20 *os << ")";
21 }
22
23 void PrintTo(const PaintProperties& properties, std::ostream* os)
24 {
25 *os << "PaintProperties()";
26 }
27
28 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698