cc: Use ResourceProvider::Resouce::type to check the type of the given resource.
commit4da9870c3d214769539c7b3ea099cfbd1f2e48eb
authordongseong.hwang@intel.com <dongseong.hwang@intel.com@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 5 Feb 2014 05:30:46 +0000 (5 05:30 +0000)
committerdongseong.hwang@intel.com <dongseong.hwang@intel.com@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 5 Feb 2014 05:30:46 +0000 (5 05:30 +0000)
tree8dafd901e89237b66f0efff667d02ab6cc678023
parent6d96c5fafdc1a532658183c0efeb7b8fd4d0e793
cc: Use ResourceProvider::Resouce::type to check the type of the given resource.

Currently, some code uses the type variable to check the type of
the given resource, while other code uses the shared_bitmap,
pixels or mailbox variable to check the same condition.

This CL makes all code use the type variable for this purpose.

In addition, this CL clarify texture_pool can be non-null only if
the type is Texture and the origin is Internal.

In addition, add several DCHECKs to increase readability.

BUG=337519

Review URL: https://codereview.chromium.org/135273008

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@248861 0039d316-1c4b-4281-b951-d872f2087c98
cc/resources/resource_provider.cc
cc/resources/resource_provider.h