Chromium Code Reviews| Index: cc/resources/resource_provider.h |
| diff --git a/cc/resources/resource_provider.h b/cc/resources/resource_provider.h |
| index cf1bb9b53f29624f205646aa34763611998e60ee..169222d5524589f1482aea9055bf493173318035 100644 |
| --- a/cc/resources/resource_provider.h |
| +++ b/cc/resources/resource_provider.h |
| @@ -75,7 +75,8 @@ class CC_EXPORT ResourceProvider { |
| SharedBitmapManager* shared_bitmap_manager, |
| int highp_threshold_min, |
| bool use_rgba_4444_texture_format, |
| - size_t id_allocation_chunk_size); |
| + size_t id_allocation_chunk_size, |
| + bool use_distance_field_text); |
| virtual ~ResourceProvider(); |
| void InitializeSoftware(); |
| @@ -480,6 +481,10 @@ class CC_EXPORT ResourceProvider { |
| ResourceProvider* resource_provider); |
| virtual ~DirectRasterBuffer(); |
| + void SetUseDistanceFieldText(bool use_distance_field_text) { |
| + use_distance_field_text_ = use_distance_field_text; |
| + } |
| + |
| protected: |
| virtual SkCanvas* DoLockForWrite() OVERRIDE; |
| virtual bool DoUnlockForWrite() OVERRIDE; |
| @@ -488,6 +493,7 @@ class CC_EXPORT ResourceProvider { |
| private: |
| skia::RefPtr<SkSurface> surface_; |
| uint32_t surface_generation_id_; |
| + bool use_distance_field_text_; |
|
reveman
2014/05/05 21:15:18
Can this be "const bool" and set by the ctor inste
jvanverth1
2014/05/06 14:27:22
Done.
|
| DISALLOW_COPY_AND_ASSIGN(DirectRasterBuffer); |
| }; |
| @@ -566,7 +572,8 @@ class CC_EXPORT ResourceProvider { |
| SharedBitmapManager* shared_bitmap_manager, |
| int highp_threshold_min, |
| bool use_rgba_4444_texture_format, |
| - size_t id_allocation_chunk_size); |
| + size_t id_allocation_chunk_size, |
| + bool use_distance_field_text); |
| void CleanUpGLIfNeeded(); |
| @@ -652,6 +659,8 @@ class CC_EXPORT ResourceProvider { |
| bool use_sync_query_; |
| + bool use_distance_field_text_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(ResourceProvider); |
| }; |