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

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

Issue 684543006: cc: Toggle LCD text at raster time instead of record time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lcdraster: initvar Created 6 years, 1 month 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_RASTER_SOURCE_H_ 5 #ifndef CC_RESOURCES_RASTER_SOURCE_H_
6 #define CC_RESOURCES_RASTER_SOURCE_H_ 6 #define CC_RESOURCES_RASTER_SOURCE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 // Return true iff this raster source would benefit from using distance 87 // Return true iff this raster source would benefit from using distance
88 // field text. 88 // field text.
89 virtual bool ShouldAttemptToUseDistanceFieldText() const = 0; 89 virtual bool ShouldAttemptToUseDistanceFieldText() const = 0;
90 90
91 // Tracing functionality. 91 // Tracing functionality.
92 virtual void DidBeginTracing() = 0; 92 virtual void DidBeginTracing() = 0;
93 virtual void AsValueInto(base::debug::TracedValue* array) const = 0; 93 virtual void AsValueInto(base::debug::TracedValue* array) const = 0;
94 virtual skia::RefPtr<SkPicture> GetFlattenedPicture() = 0; 94 virtual skia::RefPtr<SkPicture> GetFlattenedPicture() = 0;
95 95
96 // Return true if LCD anti-aliasing may be used when rastering text.
97 virtual bool CanUseLCDText() const = 0;
98
96 protected: 99 protected:
97 friend class base::RefCountedThreadSafe<RasterSource>; 100 friend class base::RefCountedThreadSafe<RasterSource>;
98 101
99 RasterSource() {} 102 RasterSource() {}
100 virtual ~RasterSource() {} 103 virtual ~RasterSource() {}
101 104
102 private: 105 private:
103 DISALLOW_COPY_AND_ASSIGN(RasterSource); 106 DISALLOW_COPY_AND_ASSIGN(RasterSource);
104 }; 107 };
105 108
106 } // namespace cc 109 } // namespace cc
107 110
108 #endif // CC_RESOURCES_RASTER_SOURCE_H_ 111 #endif // CC_RESOURCES_RASTER_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698