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

Side by Side Diff: cc/resources/resource_provider.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: . 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 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 <deque> 8 #include <deque>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 328
329 DISALLOW_COPY_AND_ASSIGN(ScopedWriteLockGpuMemoryBuffer); 329 DISALLOW_COPY_AND_ASSIGN(ScopedWriteLockGpuMemoryBuffer);
330 }; 330 };
331 331
332 class CC_EXPORT ScopedWriteLockGr { 332 class CC_EXPORT ScopedWriteLockGr {
333 public: 333 public:
334 ScopedWriteLockGr(ResourceProvider* resource_provider, 334 ScopedWriteLockGr(ResourceProvider* resource_provider,
335 ResourceProvider::ResourceId resource_id); 335 ResourceProvider::ResourceId resource_id);
336 ~ScopedWriteLockGr(); 336 ~ScopedWriteLockGr();
337 337
338 SkSurface* GetSkSurface(bool use_distance_field_text); 338 SkSurface* GetSkSurface(bool use_distance_field_text,
339 bool can_use_lcd_text);
339 340
340 private: 341 private:
341 ResourceProvider* resource_provider_; 342 ResourceProvider* resource_provider_;
342 ResourceProvider::Resource* resource_; 343 ResourceProvider::Resource* resource_;
343 base::ThreadChecker thread_checker_; 344 base::ThreadChecker thread_checker_;
344 345
345 DISALLOW_COPY_AND_ASSIGN(ScopedWriteLockGr); 346 DISALLOW_COPY_AND_ASSIGN(ScopedWriteLockGr);
346 }; 347 };
347 348
348 class Fence : public base::RefCounted<Fence> { 349 class Fence : public base::RefCounted<Fence> {
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 return format_gl_data_format[format]; 641 return format_gl_data_format[format];
641 } 642 }
642 643
643 inline GLenum GLInternalFormat(ResourceFormat format) { 644 inline GLenum GLInternalFormat(ResourceFormat format) {
644 return GLDataFormat(format); 645 return GLDataFormat(format);
645 } 646 }
646 647
647 } // namespace cc 648 } // namespace cc
648 649
649 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_ 650 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698