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

Side by Side Diff: cc/resources/video_resource_updater.cc

Issue 1539203002: Switch to standard integer types in cc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 years 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
« no previous file with comments | « cc/resources/video_resource_updater.h ('k') | cc/resources/video_resource_updater_unittest.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/resources/video_resource_updater.h" 5 #include "cc/resources/video_resource_updater.h"
6 6
7 #include <stddef.h>
8 #include <stdint.h>
9
7 #include <algorithm> 10 #include <algorithm>
8 11
9 #include "base/bind.h" 12 #include "base/bind.h"
10 #include "base/trace_event/trace_event.h" 13 #include "base/trace_event/trace_event.h"
11 #include "cc/base/math_util.h" 14 #include "cc/base/math_util.h"
12 #include "cc/output/gl_renderer.h" 15 #include "cc/output/gl_renderer.h"
13 #include "cc/resources/resource_provider.h" 16 #include "cc/resources/resource_provider.h"
14 #include "gpu/GLES2/gl2extchromium.h" 17 #include "gpu/GLES2/gl2extchromium.h"
15 #include "gpu/command_buffer/client/gles2_interface.h" 18 #include "gpu/command_buffer/client/gles2_interface.h"
16 #include "media/base/video_frame.h" 19 #include "media/base/video_frame.h"
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 resource_it->ref_count = 0; 484 resource_it->ref_count = 0;
482 updater->DeleteResource(resource_it); 485 updater->DeleteResource(resource_it);
483 return; 486 return;
484 } 487 }
485 488
486 --resource_it->ref_count; 489 --resource_it->ref_count;
487 DCHECK_GE(resource_it->ref_count, 0); 490 DCHECK_GE(resource_it->ref_count, 0);
488 } 491 }
489 492
490 } // namespace cc 493 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/video_resource_updater.h ('k') | cc/resources/video_resource_updater_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698