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

Side by Side Diff: cc/test/fake_content_layer_client.cc

Issue 634243003: [C++11 Allowed Features] Declares a type-safe null pointer converting from NULL to nullptr [part-4] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Formating fix. Created 6 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
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/test/fake_content_layer_client.h" 5 #include "cc/test/fake_content_layer_client.h"
6 6
7 #include "third_party/skia/include/core/SkCanvas.h" 7 #include "third_party/skia/include/core/SkCanvas.h"
8 #include "ui/gfx/skia_util.h" 8 #include "ui/gfx/skia_util.h"
9 9
10 namespace cc { 10 namespace cc {
11 11
12 FakeContentLayerClient::FakeContentLayerClient() 12 FakeContentLayerClient::FakeContentLayerClient()
13 : fill_with_nonsolid_color_(false), last_canvas_(NULL) { 13 : fill_with_nonsolid_color_(false), last_canvas_(nullptr) {
14 } 14 }
15 15
16 FakeContentLayerClient::~FakeContentLayerClient() { 16 FakeContentLayerClient::~FakeContentLayerClient() {
17 } 17 }
18 18
19 void FakeContentLayerClient::PaintContents( 19 void FakeContentLayerClient::PaintContents(
20 SkCanvas* canvas, 20 SkCanvas* canvas,
21 const gfx::Rect& paint_rect, 21 const gfx::Rect& paint_rect,
22 ContentLayerClient::GraphicsContextStatus gc_status) { 22 ContentLayerClient::GraphicsContextStatus gc_status) {
23 last_canvas_ = canvas; 23 last_canvas_ = canvas;
(...skipping 26 matching lines...) Expand all
50 draw_rect.y(), 50 draw_rect.y(),
51 draw_rect.right(), 51 draw_rect.right(),
52 draw_rect.bottom(), 52 draw_rect.bottom(),
53 paint); 53 paint);
54 } 54 }
55 } 55 }
56 56
57 bool FakeContentLayerClient::FillsBoundsCompletely() const { return false; } 57 bool FakeContentLayerClient::FillsBoundsCompletely() const { return false; }
58 58
59 } // namespace cc 59 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698