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

Side by Side Diff: cc/scheduler/texture_uploader.h

Issue 27973002: cc: Adding ETC1 support to UIResourceBitmap and ResourceProvider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
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_SCHEDULER_TEXTURE_UPLOADER_H_ 5 #ifndef CC_SCHEDULER_TEXTURE_UPLOADER_H_
6 #define CC_SCHEDULER_TEXTURE_UPLOADER_H_ 6 #define CC_SCHEDULER_TEXTURE_UPLOADER_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 void UploadWithTexSubImage(const uint8* image, 96 void UploadWithTexSubImage(const uint8* image,
97 gfx::Rect image_rect, 97 gfx::Rect image_rect,
98 gfx::Rect source_rect, 98 gfx::Rect source_rect,
99 gfx::Vector2d dest_offset, 99 gfx::Vector2d dest_offset,
100 ResourceFormat format); 100 ResourceFormat format);
101 void UploadWithMapTexSubImage(const uint8* image, 101 void UploadWithMapTexSubImage(const uint8* image,
102 gfx::Rect image_rect, 102 gfx::Rect image_rect,
103 gfx::Rect source_rect, 103 gfx::Rect source_rect,
104 gfx::Vector2d dest_offset, 104 gfx::Vector2d dest_offset,
105 ResourceFormat format); 105 ResourceFormat format);
106 void UploadWithTexSubImageETC1(const uint8* image,
107 gfx::Rect image_rect,
108 gfx::Rect source_rect,
109 gfx::Vector2d dest_offset,
110 ResourceFormat format);
106 111
107 WebKit::WebGraphicsContext3D* context_; 112 WebKit::WebGraphicsContext3D* context_;
108 ScopedPtrDeque<Query> pending_queries_; 113 ScopedPtrDeque<Query> pending_queries_;
109 ScopedPtrDeque<Query> available_queries_; 114 ScopedPtrDeque<Query> available_queries_;
110 std::multiset<double> textures_per_second_history_; 115 std::multiset<double> textures_per_second_history_;
111 size_t num_blocking_texture_uploads_; 116 size_t num_blocking_texture_uploads_;
112 117
113 bool use_map_tex_sub_image_; 118 bool use_map_tex_sub_image_;
114 size_t sub_image_size_; 119 size_t sub_image_size_;
115 scoped_ptr<uint8[]> sub_image_; 120 scoped_ptr<uint8[]> sub_image_;
116 121
117 bool use_shallow_flush_; 122 bool use_shallow_flush_;
118 size_t num_texture_uploads_since_last_flush_; 123 size_t num_texture_uploads_since_last_flush_;
119 124
120 DISALLOW_COPY_AND_ASSIGN(TextureUploader); 125 DISALLOW_COPY_AND_ASSIGN(TextureUploader);
121 }; 126 };
122 127
123 } // namespace cc 128 } // namespace cc
124 129
125 #endif // CC_SCHEDULER_TEXTURE_UPLOADER_H_ 130 #endif // CC_SCHEDULER_TEXTURE_UPLOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698