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

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

Issue 236313006: cc: Add initial GPU-to-GPU copy rasterizer implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/resources/raster_worker_pool_unittest.cc ('k') | cc/trees/layer_tree_host_impl.h » ('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 <deque> 8 #include <deque>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 void InitializeSoftware(); 81 void InitializeSoftware();
82 void InitializeGL(); 82 void InitializeGL();
83 83
84 void DidLoseOutputSurface() { lost_output_surface_ = true; } 84 void DidLoseOutputSurface() { lost_output_surface_ = true; }
85 85
86 int max_texture_size() const { return max_texture_size_; } 86 int max_texture_size() const { return max_texture_size_; }
87 ResourceFormat memory_efficient_texture_format() const { 87 ResourceFormat memory_efficient_texture_format() const {
88 return use_rgba_4444_texture_format_ ? RGBA_4444 : best_texture_format_; 88 return use_rgba_4444_texture_format_ ? RGBA_4444 : best_texture_format_;
89 } 89 }
90 ResourceFormat best_texture_format() const { return best_texture_format_; } 90 ResourceFormat best_texture_format() const { return best_texture_format_; }
91 bool use_sync_query() const { return use_sync_query_; }
91 size_t num_resources() const { return resources_.size(); } 92 size_t num_resources() const { return resources_.size(); }
92 93
93 // Checks whether a resource is in use by a consumer. 94 // Checks whether a resource is in use by a consumer.
94 bool InUseByConsumer(ResourceId id); 95 bool InUseByConsumer(ResourceId id);
95 96
96 bool IsLost(ResourceId id); 97 bool IsLost(ResourceId id);
97 bool AllowOverlay(ResourceId id); 98 bool AllowOverlay(ResourceId id);
98 99
99 // Producer interface. 100 // Producer interface.
100 101
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
696 return format_gl_data_format[format]; 697 return format_gl_data_format[format];
697 } 698 }
698 699
699 inline GLenum GLInternalFormat(ResourceFormat format) { 700 inline GLenum GLInternalFormat(ResourceFormat format) {
700 return GLDataFormat(format); 701 return GLDataFormat(format);
701 } 702 }
702 703
703 } // namespace cc 704 } // namespace cc
704 705
705 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_ 706 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_
OLDNEW
« no previous file with comments | « cc/resources/raster_worker_pool_unittest.cc ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698