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

Side by Side Diff: cc/playback/raster_source.cc

Issue 1925433002: Replace SkTLazy with base::Optional (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: No Optional Created 4 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/playback/raster_source.h" 5 #include "cc/playback/raster_source.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "base/thread_task_runner_handle.h" 10 #include "base/thread_task_runner_handle.h"
11 #include "base/trace_event/memory_dump_manager.h" 11 #include "base/trace_event/memory_dump_manager.h"
12 #include "base/trace_event/trace_event.h" 12 #include "base/trace_event/trace_event.h"
13 #include "cc/base/region.h" 13 #include "cc/base/region.h"
14 #include "cc/debug/debug_colors.h" 14 #include "cc/debug/debug_colors.h"
15 #include "cc/playback/display_item_list.h" 15 #include "cc/playback/display_item_list.h"
16 #include "cc/playback/image_hijack_canvas.h" 16 #include "cc/playback/image_hijack_canvas.h"
17 #include "cc/playback/skip_image_canvas.h" 17 #include "cc/playback/skip_image_canvas.h"
18 #include "skia/ext/analysis_canvas.h" 18 #include "skia/ext/analysis_canvas.h"
19 #include "third_party/skia/include/core/SkCanvas.h" 19 #include "third_party/skia/include/core/SkCanvas.h"
20 #include "third_party/skia/include/core/SkPictureRecorder.h" 20 #include "third_party/skia/include/core/SkPictureRecorder.h"
21 #include "third_party/skia/include/core/SkTLazy.h"
22 #include "ui/gfx/geometry/rect_conversions.h" 21 #include "ui/gfx/geometry/rect_conversions.h"
23 22
24 namespace cc { 23 namespace cc {
25 24
26 scoped_refptr<RasterSource> RasterSource::CreateFromRecordingSource( 25 scoped_refptr<RasterSource> RasterSource::CreateFromRecordingSource(
27 const RecordingSource* other, 26 const RecordingSource* other,
28 bool can_use_lcd_text) { 27 bool can_use_lcd_text) {
29 return make_scoped_refptr(new RasterSource(other, can_use_lcd_text)); 28 return make_scoped_refptr(new RasterSource(other, can_use_lcd_text));
30 } 29 }
31 30
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 } 351 }
353 return true; 352 return true;
354 } 353 }
355 354
356 RasterSource::PlaybackSettings::PlaybackSettings() 355 RasterSource::PlaybackSettings::PlaybackSettings()
357 : playback_to_shared_canvas(false), 356 : playback_to_shared_canvas(false),
358 skip_images(false), 357 skip_images(false),
359 use_image_hijack_canvas(true) {} 358 use_image_hijack_canvas(true) {}
360 359
361 } // namespace cc 360 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698