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

Side by Side Diff: cc/tile_drawing_info.cc

Issue 12353003: cc: Refactored Tile::GetResourceId (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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "cc/tile_drawing_info.h"
6
7 namespace cc {
8
9 bool TileDrawingInfo::IsReadyToDraw() const {
10 switch(mode_) {
11 case TEXTURE_MODE:
12 return resource_ &&
13 !resource_is_being_initialized_ &&
14 resource_->id();
15 case SOLID_COLOR_MODE:
16 case TRANSPARENT_MODE:
17 case PICTURE_PILE_MODE:
18 return true;
19 default:
20 NOTREACHED();
21 return false;
22 }
23 }
24
25 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698