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

Side by Side Diff: cc/resources/display_list_recording_source.h

Issue 1028333002: Chromium -> Mojo roll. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 #ifndef CC_RESOURCES_DISPLAY_LIST_RECORDING_SOURCE_H_ 5 #ifndef CC_RESOURCES_DISPLAY_LIST_RECORDING_SOURCE_H_
6 #define CC_RESOURCES_DISPLAY_LIST_RECORDING_SOURCE_H_ 6 #define CC_RESOURCES_DISPLAY_LIST_RECORDING_SOURCE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/resources/recording_source.h" 9 #include "cc/resources/recording_source.h"
10 10
(...skipping 12 matching lines...) Expand all
23 const gfx::Size& layer_size, 23 const gfx::Size& layer_size,
24 const gfx::Rect& visible_layer_rect, 24 const gfx::Rect& visible_layer_rect,
25 int frame_number, 25 int frame_number,
26 RecordingMode recording_mode) override; 26 RecordingMode recording_mode) override;
27 void DidMoveToNewCompositor() override; 27 void DidMoveToNewCompositor() override;
28 scoped_refptr<RasterSource> CreateRasterSource( 28 scoped_refptr<RasterSource> CreateRasterSource(
29 bool can_use_lcd_text) const override; 29 bool can_use_lcd_text) const override;
30 gfx::Size GetSize() const final; 30 gfx::Size GetSize() const final;
31 void SetEmptyBounds() override; 31 void SetEmptyBounds() override;
32 void SetSlowdownRasterScaleFactor(int factor) override; 32 void SetSlowdownRasterScaleFactor(int factor) override;
33 void SetGatherPixelRefs(bool gather_pixel_refs) override;
33 void SetBackgroundColor(SkColor background_color) override; 34 void SetBackgroundColor(SkColor background_color) override;
34 void SetRequiresClear(bool requires_clear) override; 35 void SetRequiresClear(bool requires_clear) override;
35 bool IsSuitableForGpuRasterization() const override; 36 bool IsSuitableForGpuRasterization() const override;
36 void SetUnsuitableForGpuRasterizationForTesting() override; 37 void SetUnsuitableForGpuRasterizationForTesting() override;
37 gfx::Size GetTileGridSizeForTesting() const override; 38 gfx::Size GetTileGridSizeForTesting() const override;
38 39
39 protected: 40 protected:
40 void Clear(); 41 void Clear();
41 42
42 gfx::Rect recorded_viewport_; 43 gfx::Rect recorded_viewport_;
43 gfx::Size size_; 44 gfx::Size size_;
44 int slow_down_raster_scale_factor_for_debug_; 45 int slow_down_raster_scale_factor_for_debug_;
46 bool gather_pixel_refs_;
45 bool requires_clear_; 47 bool requires_clear_;
46 bool is_solid_color_; 48 bool is_solid_color_;
47 SkColor solid_color_; 49 SkColor solid_color_;
48 SkColor background_color_; 50 SkColor background_color_;
49 int pixel_record_distance_; 51 int pixel_record_distance_;
50 52
51 scoped_refptr<DisplayItemList> display_list_; 53 scoped_refptr<DisplayItemList> display_list_;
52 54
53 private: 55 private:
54 friend class DisplayListRasterSource; 56 friend class DisplayListRasterSource;
55 57
56 void DetermineIfSolidColor(); 58 void DetermineIfSolidColor();
57 59
58 bool is_suitable_for_gpu_rasterization_; 60 bool is_suitable_for_gpu_rasterization_;
59 61
60 DISALLOW_COPY_AND_ASSIGN(DisplayListRecordingSource); 62 DISALLOW_COPY_AND_ASSIGN(DisplayListRecordingSource);
61 }; 63 };
62 64
63 } // namespace cc 65 } // namespace cc
64 66
65 #endif // CC_RESOURCES_DISPLAY_LIST_RECORDING_SOURCE_H_ 67 #endif // CC_RESOURCES_DISPLAY_LIST_RECORDING_SOURCE_H_
OLDNEW
« no previous file with comments | « cc/resources/display_list_raster_source.cc ('k') | cc/resources/display_list_recording_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698