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

Side by Side Diff: cc/playback/display_item_list.cc

Issue 1418573002: cc: Add image decode control in the compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/playback/display_item_list.h" 5 #include "cc/playback/display_item_list.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/numerics/safe_conversions.h" 9 #include "base/numerics/safe_conversions.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 gfx::Rect(layer_rect_.right(), layer_rect_.bottom()), 1.f); 337 gfx::Rect(layer_rect_.right(), layer_rect_.bottom()), 1.f);
338 } 338 }
339 339
340 void DisplayItemList::GetDiscardableImagesInRect( 340 void DisplayItemList::GetDiscardableImagesInRect(
341 const gfx::Rect& rect, 341 const gfx::Rect& rect,
342 float raster_scale, 342 float raster_scale,
343 std::vector<DrawImage>* images) { 343 std::vector<DrawImage>* images) {
344 image_map_.GetDiscardableImagesInRect(rect, raster_scale, images); 344 image_map_.GetDiscardableImagesInRect(rect, raster_scale, images);
345 } 345 }
346 346
347 bool DisplayItemList::MayHaveDiscardableImages() const {
348 return !image_map_.empty();
349 }
350
347 } // namespace cc 351 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698