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

Unified Diff: cc/resources/resource_provider.h

Issue 648293006: cc: turn on distance field text on animated layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved dff setting from rasterprovider to gpurasterpool Created 6 years, 2 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
Index: cc/resources/resource_provider.h
diff --git a/cc/resources/resource_provider.h b/cc/resources/resource_provider.h
index dc8e7b6cacada7f462c89cc7ee81ec7f215def4c..204f0d4e1c8841f7a1ba4b2a1c95621bdbe4c04b 100644
--- a/cc/resources/resource_provider.h
+++ b/cc/resources/resource_provider.h
@@ -83,8 +83,7 @@ class CC_EXPORT ResourceProvider {
BlockingTaskRunner* blocking_main_thread_task_runner,
int highp_threshold_min,
bool use_rgba_4444_texture_format,
- size_t id_allocation_chunk_size,
- bool use_distance_field_text);
+ size_t id_allocation_chunk_size);
virtual ~ResourceProvider();
void InitializeSoftware();
@@ -328,12 +327,11 @@ class CC_EXPORT ResourceProvider {
ResourceProvider::ResourceId resource_id);
~ScopedWriteLockGr();
- SkSurface* sk_surface() { return sk_surface_; }
+ SkSurface* GetSkSurface(bool use_distance_field_text);
private:
ResourceProvider* resource_provider_;
ResourceProvider::ResourceId resource_id_;
- SkSurface* sk_surface_;
DISALLOW_COPY_AND_ASSIGN(ScopedWriteLockGr);
};
@@ -488,8 +486,7 @@ class CC_EXPORT ResourceProvider {
BlockingTaskRunner* blocking_main_thread_task_runner,
int highp_threshold_min,
bool use_rgba_4444_texture_format,
- size_t id_allocation_chunk_size,
- bool use_distance_field_text);
+ size_t id_allocation_chunk_size);
void CleanUpGLIfNeeded();
@@ -500,7 +497,7 @@ class CC_EXPORT ResourceProvider {
void UnlockForWrite(ResourceId id);
const Resource* LockForWriteToGpuMemoryBuffer(ResourceId id);
void UnlockForWriteToGpuMemoryBuffer(ResourceId id);
- const Resource* LockForWriteToSkSurface(ResourceId id);
+ void LockForWriteToSkSurface(ResourceId id);
void UnlockForWriteToSkSurface(ResourceId id);
static void PopulateSkBitmapWithResource(SkBitmap* sk_bitmap,
@@ -562,8 +559,6 @@ class CC_EXPORT ResourceProvider {
bool use_sync_query_;
- bool use_distance_field_text_;
-
DISALLOW_COPY_AND_ASSIGN(ResourceProvider);
};

Powered by Google App Engine
This is Rietveld 408576698