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

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

Issue 2702633002: color: Remove implied color space (Closed)
Patch Set: Rebase Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « cc/raster/zero_copy_raster_buffer_provider.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_RESOURCE_PROVIDER_H_ 5 #ifndef CC_RESOURCES_RESOURCE_PROVIDER_H_
6 #define CC_RESOURCES_RESOURCE_PROVIDER_H_ 6 #define CC_RESOURCES_RESOURCE_PROVIDER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 DISALLOW_COPY_AND_ASSIGN(ScopedTextureProvider); 332 DISALLOW_COPY_AND_ASSIGN(ScopedTextureProvider);
333 }; 333 };
334 334
335 class CC_EXPORT ScopedSkSurfaceProvider { 335 class CC_EXPORT ScopedSkSurfaceProvider {
336 public: 336 public:
337 ScopedSkSurfaceProvider(ContextProvider* context_provider, 337 ScopedSkSurfaceProvider(ContextProvider* context_provider,
338 ScopedWriteLockGL* resource_lock, 338 ScopedWriteLockGL* resource_lock,
339 bool use_mailbox, 339 bool use_mailbox,
340 bool use_distance_field_text, 340 bool use_distance_field_text,
341 bool can_use_lcd_text, 341 bool can_use_lcd_text,
342 bool ignore_color_space,
343 int msaa_sample_count); 342 int msaa_sample_count);
344 ~ScopedSkSurfaceProvider(); 343 ~ScopedSkSurfaceProvider();
345 344
346 SkSurface* sk_surface() { return sk_surface_.get(); } 345 SkSurface* sk_surface() { return sk_surface_.get(); }
347 346
348 private: 347 private:
349 ScopedTextureProvider texture_provider_; 348 ScopedTextureProvider texture_provider_;
350 sk_sp<SkSurface> sk_surface_; 349 sk_sp<SkSurface> sk_surface_;
351 350
352 DISALLOW_COPY_AND_ASSIGN(ScopedSkSurfaceProvider); 351 DISALLOW_COPY_AND_ASSIGN(ScopedSkSurfaceProvider);
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 // Set of resource Ids that would like to be notified about promotion hints. 760 // Set of resource Ids that would like to be notified about promotion hints.
762 ResourceIdSet wants_promotion_hints_set_; 761 ResourceIdSet wants_promotion_hints_set_;
763 #endif 762 #endif
764 763
765 DISALLOW_COPY_AND_ASSIGN(ResourceProvider); 764 DISALLOW_COPY_AND_ASSIGN(ResourceProvider);
766 }; 765 };
767 766
768 } // namespace cc 767 } // namespace cc
769 768
770 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_ 769 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_
OLDNEW
« no previous file with comments | « cc/raster/zero_copy_raster_buffer_provider.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698