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

Side by Side Diff: cc/resource_update_controller.cc

Issue 12472028: Part 1 of cc/ directory shuffles: base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 "cc/resource_update_controller.h" 5 #include "cc/resource_update_controller.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "cc/base/thread.h"
10 #include "cc/context_provider.h" 11 #include "cc/context_provider.h"
11 #include "cc/prioritized_resource.h" 12 #include "cc/prioritized_resource.h"
12 #include "cc/resource_provider.h" 13 #include "cc/resource_provider.h"
13 #include "cc/texture_copier.h" 14 #include "cc/texture_copier.h"
14 #include "cc/thread.h"
15 #include "skia/ext/refptr.h" 15 #include "skia/ext/refptr.h"
16 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3 D.h" 16 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3 D.h"
17 #include "third_party/khronos/GLES2/gl2.h" 17 #include "third_party/khronos/GLES2/gl2.h"
18 #include "third_party/skia/include/gpu/SkGpuDevice.h" 18 #include "third_party/skia/include/gpu/SkGpuDevice.h"
19 19
20 using WebKit::WebGraphicsContext3D; 20 using WebKit::WebGraphicsContext3D;
21 21
22 namespace { 22 namespace {
23 23
24 // Number of partial updates we allow. 24 // Number of partial updates we allow.
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 if (!uploads) 266 if (!uploads)
267 return; 267 return;
268 268
269 while (queue_->fullUploadSize() && uploads--) 269 while (queue_->fullUploadSize() && uploads--)
270 UpdateTexture(queue_->takeFirstFullUpload()); 270 UpdateTexture(queue_->takeFirstFullUpload());
271 271
272 resource_provider_->FlushUploads(); 272 resource_provider_->FlushUploads();
273 } 273 }
274 274
275 } // namespace cc 275 } // namespace cc
OLDNEW
« cc/cc.gyp ('K') | « cc/resource_update_controller.h ('k') | cc/resource_update_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698