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

Unified Diff: cc/resources/display_list_recording_source.h

Issue 1144693002: cc: Move files out of cc/resources/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resources: android Created 5 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/display_list_recording_source.h
diff --git a/cc/resources/display_list_recording_source.h b/cc/resources/display_list_recording_source.h
deleted file mode 100644
index 2d994f6263f7b92343cd30992d3ba2bc3c3826c4..0000000000000000000000000000000000000000
--- a/cc/resources/display_list_recording_source.h
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CC_RESOURCES_DISPLAY_LIST_RECORDING_SOURCE_H_
-#define CC_RESOURCES_DISPLAY_LIST_RECORDING_SOURCE_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "cc/resources/recording_source.h"
-
-namespace cc {
-class DisplayItemList;
-class DisplayListRasterSource;
-
-class CC_EXPORT DisplayListRecordingSource : public RecordingSource {
- public:
- DisplayListRecordingSource(const gfx::Size& grid_cell_size,
- bool use_cached_picture);
- ~DisplayListRecordingSource() override;
-
- // RecordingSource overrides.
- bool UpdateAndExpandInvalidation(ContentLayerClient* painter,
- Region* invalidation,
- const gfx::Size& layer_size,
- const gfx::Rect& visible_layer_rect,
- int frame_number,
- RecordingMode recording_mode) override;
- scoped_refptr<RasterSource> CreateRasterSource(
- bool can_use_lcd_text) const override;
- gfx::Size GetSize() const final;
- void SetEmptyBounds() override;
- void SetSlowdownRasterScaleFactor(int factor) override;
- void SetGatherPixelRefs(bool gather_pixel_refs) override;
- void SetBackgroundColor(SkColor background_color) override;
- void SetRequiresClear(bool requires_clear) override;
- bool IsSuitableForGpuRasterization() const override;
- void SetUnsuitableForGpuRasterizationForTesting() override;
- gfx::Size GetTileGridSizeForTesting() const override;
-
- protected:
- void Clear();
-
- const bool use_cached_picture_;
-
- gfx::Rect recorded_viewport_;
- gfx::Size size_;
- int slow_down_raster_scale_factor_for_debug_;
- bool gather_pixel_refs_;
- bool requires_clear_;
- bool is_solid_color_;
- SkColor solid_color_;
- SkColor background_color_;
- int pixel_record_distance_;
- gfx::Size grid_cell_size_;
-
- scoped_refptr<DisplayItemList> display_list_;
-
- private:
- friend class DisplayListRasterSource;
-
- void DetermineIfSolidColor();
-
- bool is_suitable_for_gpu_rasterization_;
-
- DISALLOW_COPY_AND_ASSIGN(DisplayListRecordingSource);
-};
-
-} // namespace cc
-
-#endif // CC_RESOURCES_DISPLAY_LIST_RECORDING_SOURCE_H_
« 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