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

Unified Diff: cc/resources/resource_provider.h

Issue 266743003: Add flag to enable rendering of text using signed distance fields. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor formatting cleanup Created 6 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 | « no previous file | cc/resources/resource_provider.cc » ('j') | content/public/common/content_switches.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « no previous file | cc/resources/resource_provider.cc » ('j') | content/public/common/content_switches.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698