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

Unified Diff: trunk/src/cc/layers/video_layer_impl.cc

Issue 13334005: Revert 191400 "cc: Add ‘chromium_code’: 1 to cc.gyp and cc_t..." (Closed) Base URL: svn://svn.chromium.org/chrome/
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « trunk/src/cc/layers/tiled_layer_unittest.cc ('k') | trunk/src/cc/output/delegating_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/cc/layers/video_layer_impl.cc
===================================================================
--- trunk/src/cc/layers/video_layer_impl.cc (revision 191411)
+++ trunk/src/cc/layers/video_layer_impl.cc (working copy)
@@ -354,7 +354,7 @@
resource_id = resource_provider->CreateResource(
size, format, ResourceProvider::TextureUsageAny);
- return resource_id != 0;
+ return resource_id;
}
void VideoLayerImpl::FramePlane::FreeData(ResourceProvider* resource_provider) {
@@ -431,7 +431,7 @@
for (size_t plane_index = 0; plane_index < plane_count; ++plane_index) {
const VideoLayerImpl::FramePlane& plane = frame_planes_[plane_index];
// Only planar formats planes should need upload.
- DCHECK_EQ(plane.format, static_cast<unsigned>(GL_LUMINANCE));
+ DCHECK_EQ(plane.format, GL_LUMINANCE);
const uint8_t* software_plane_pixels = frame_->data(plane_index);
gfx::Rect image_rect(0,
0,
« no previous file with comments | « trunk/src/cc/layers/tiled_layer_unittest.cc ('k') | trunk/src/cc/output/delegating_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698