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

Unified Diff: cc/playback/raster_source.h

Issue 1837263005: cc: Rename DisplayListRasterSource to just RasterSource. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/playback/display_list_recording_source_unittest.cc ('k') | cc/playback/raster_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/raster_source.h
diff --git a/cc/playback/display_list_raster_source.h b/cc/playback/raster_source.h
similarity index 86%
rename from cc/playback/display_list_raster_source.h
rename to cc/playback/raster_source.h
index f9df1964f66c6208065da73aeef6d463be33424e..062316ca2a31dd5c507317934d8e5cdc87514c04 100644
--- a/cc/playback/display_list_raster_source.h
+++ b/cc/playback/raster_source.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CC_PLAYBACK_DISPLAY_LIST_RASTER_SOURCE_H_
-#define CC_PLAYBACK_DISPLAY_LIST_RASTER_SOURCE_H_
+#ifndef CC_PLAYBACK_RASTER_SOURCE_H_
+#define CC_PLAYBACK_RASTER_SOURCE_H_
#include <stddef.h>
@@ -25,13 +25,12 @@ class DisplayItemList;
class DrawImage;
class ImageDecodeController;
-class CC_EXPORT DisplayListRasterSource
- : public base::trace_event::MemoryDumpProvider,
- public base::RefCountedThreadSafe<DisplayListRasterSource> {
+class CC_EXPORT RasterSource : public base::trace_event::MemoryDumpProvider,
+ public base::RefCountedThreadSafe<RasterSource> {
public:
- static scoped_refptr<DisplayListRasterSource>
- CreateFromDisplayListRecordingSource(const DisplayListRecordingSource* other,
- bool can_use_lcd_text);
+ static scoped_refptr<RasterSource> CreateFromDisplayListRecordingSource(
+ const DisplayListRecordingSource* other,
+ bool can_use_lcd_text);
// Raster a subrect of this RasterSource into the given canvas. It is
// assumed that contents_scale has already been applied to this canvas.
@@ -108,7 +107,7 @@ class CC_EXPORT DisplayListRasterSource
// Return true if LCD anti-aliasing may be used when rastering text.
virtual bool CanUseLCDText() const;
- scoped_refptr<DisplayListRasterSource> CreateCloneWithoutLCDText() const;
+ scoped_refptr<RasterSource> CreateCloneWithoutLCDText() const;
// Image decode controller should be set once. Its lifetime has to exceed that
// of the raster source, since the raster source will access it during raster.
@@ -119,13 +118,11 @@ class CC_EXPORT DisplayListRasterSource
base::trace_event::ProcessMemoryDump* pmd) override;
protected:
- friend class base::RefCountedThreadSafe<DisplayListRasterSource>;
+ friend class base::RefCountedThreadSafe<RasterSource>;
- DisplayListRasterSource(const DisplayListRecordingSource* other,
- bool can_use_lcd_text);
- DisplayListRasterSource(const DisplayListRasterSource* other,
- bool can_use_lcd_text);
- ~DisplayListRasterSource() override;
+ RasterSource(const DisplayListRecordingSource* other, bool can_use_lcd_text);
+ RasterSource(const RasterSource* other, bool can_use_lcd_text);
+ ~RasterSource() override;
// These members are const as this raster source may be in use on another
// thread and so should not be touched after construction.
@@ -169,9 +166,9 @@ class CC_EXPORT DisplayListRasterSource
// Used to ensure that memory dump logic always happens on the same thread.
base::ThreadChecker memory_dump_thread_checker_;
- DISALLOW_COPY_AND_ASSIGN(DisplayListRasterSource);
+ DISALLOW_COPY_AND_ASSIGN(RasterSource);
};
} // namespace cc
-#endif // CC_PLAYBACK_DISPLAY_LIST_RASTER_SOURCE_H_
+#endif // CC_PLAYBACK_RASTER_SOURCE_H_
« no previous file with comments | « cc/playback/display_list_recording_source_unittest.cc ('k') | cc/playback/raster_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698