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

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

Issue 903273002: Update from https://crrev.com/315085 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
11 namespace cc { 11 namespace cc {
12 class DisplayItemList; 12 class DisplayItemList;
13 class DisplayListRasterSource; 13 class DisplayListRasterSource;
14 14
15 class CC_EXPORT DisplayListRecordingSource : public RecordingSource { 15 class CC_EXPORT DisplayListRecordingSource : public RecordingSource {
16 public: 16 public:
17 DisplayListRecordingSource(); 17 DisplayListRecordingSource();
18 ~DisplayListRecordingSource() override; 18 ~DisplayListRecordingSource() override;
19 19
20 // RecordingSource overrides. 20 // RecordingSource overrides.
21 bool UpdateAndExpandInvalidation( 21 bool UpdateAndExpandInvalidation(ContentLayerClient* painter,
22 ContentLayerClient* painter, 22 Region* invalidation,
23 Region* invalidation, 23 bool can_use_lcd_text,
24 bool can_use_lcd_text, 24 const gfx::Size& layer_size,
25 const gfx::Size& layer_size, 25 const gfx::Rect& visible_layer_rect,
26 const gfx::Rect& visible_layer_rect, 26 int frame_number,
27 int frame_number, 27 RecordingMode recording_mode) override;
28 Picture::RecordingMode recording_mode) override;
29 scoped_refptr<RasterSource> CreateRasterSource() const override; 28 scoped_refptr<RasterSource> CreateRasterSource() const override;
30 gfx::Size GetSize() const final; 29 gfx::Size GetSize() const final;
31 void SetEmptyBounds() override; 30 void SetEmptyBounds() override;
32 void SetSlowdownRasterScaleFactor(int factor) override; 31 void SetSlowdownRasterScaleFactor(int factor) override;
33 bool IsSuitableForGpuRasterization() const override; 32 bool IsSuitableForGpuRasterization() const override;
34 void SetUnsuitableForGpuRasterizationForTesting() override; 33 void SetUnsuitableForGpuRasterizationForTesting() override;
35 gfx::Size GetTileGridSizeForTesting() const override; 34 gfx::Size GetTileGridSizeForTesting() const override;
36 35
37 protected: 36 protected:
38 void Clear(); 37 void Clear();
(...skipping 14 matching lines...) Expand all
53 void DetermineIfSolidColor(); 52 void DetermineIfSolidColor();
54 53
55 bool is_suitable_for_gpu_rasterization_; 54 bool is_suitable_for_gpu_rasterization_;
56 55
57 DISALLOW_COPY_AND_ASSIGN(DisplayListRecordingSource); 56 DISALLOW_COPY_AND_ASSIGN(DisplayListRecordingSource);
58 }; 57 };
59 58
60 } // namespace cc 59 } // namespace cc
61 60
62 #endif // CC_RESOURCES_DISPLAY_LIST_RECORDING_SOURCE_H_ 61 #endif // CC_RESOURCES_DISPLAY_LIST_RECORDING_SOURCE_H_
OLDNEW
« no previous file with comments | « cc/resources/bitmap_tile_task_worker_pool.h ('k') | cc/resources/display_list_recording_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698