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

Side by Side Diff: cc/unthrottled_texture_uploader.cc

Issue 11189043: cc: Rename cc classes and members to match filenames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 #include "config.h" 5 #include "config.h"
6 6
7 #include "cc/unthrottled_texture_uploader.h" 7 #include "cc/unthrottled_texture_uploader.h"
8 8
9 #include "CCPrioritizedTexture.h" 9 #include "CCPrioritizedTexture.h"
10 10
11 namespace cc { 11 namespace cc {
12 12
13 size_t UnthrottledTextureUploader::numBlockingUploads() 13 size_t UnthrottledTextureUploader::numBlockingUploads()
14 { 14 {
15 return 0; 15 return 0;
16 } 16 }
17 17
18 void UnthrottledTextureUploader::markPendingUploadsAsNonBlocking() 18 void UnthrottledTextureUploader::markPendingUploadsAsNonBlocking()
19 { 19 {
20 } 20 }
21 21
22 double UnthrottledTextureUploader::estimatedTexturesPerSecond() 22 double UnthrottledTextureUploader::estimatedTexturesPerSecond()
23 { 23 {
24 return std::numeric_limits<double>::max(); 24 return std::numeric_limits<double>::max();
25 } 25 }
26 26
27 void UnthrottledTextureUploader::uploadTexture(CCResourceProvider* resourceProvi der, Parameters upload) 27 void UnthrottledTextureUploader::uploadTexture(ResourceProvider* resourceProvide r, Parameters upload)
28 { 28 {
29 if (upload.bitmap) { 29 if (upload.bitmap) {
30 upload.bitmap->lockPixels(); 30 upload.bitmap->lockPixels();
31 upload.texture->upload( 31 upload.texture->upload(
32 resourceProvider, 32 resourceProvider,
33 static_cast<const uint8_t*>(upload.bitmap->getPixels()), 33 static_cast<const uint8_t*>(upload.bitmap->getPixels()),
34 upload.geometry.contentRect, 34 upload.geometry.contentRect,
35 upload.geometry.sourceRect, 35 upload.geometry.sourceRect,
36 upload.geometry.destOffset); 36 upload.geometry.destOffset);
37 upload.bitmap->unlockPixels(); 37 upload.bitmap->unlockPixels();
38 } 38 }
39 39
40 ASSERT(!upload.picture); 40 ASSERT(!upload.picture);
41 } 41 }
42 42
43 } 43 }
OLDNEW
« cc/active_animation.h ('K') | « cc/unthrottled_texture_uploader.h ('k') | cc/video_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698