summaryrefslogtreecommitdiffstats
path: root/cc/surfaces/surface.h
diff options
context:
space:
mode:
authorjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-25 00:21:37 +0000
committerjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-25 00:21:37 +0000
commit1442d7f4cb20dc35f0a138fce93186eaa688e4ea (patch)
tree1a7eae282a7736913e486088609345346a808e7b /cc/surfaces/surface.h
parent86cfc58a8c741776ba1127190aa3e68dfecaa905 (diff)
downloadchromium_src-1442d7f4cb20dc35f0a138fce93186eaa688e4ea.zip
chromium_src-1442d7f4cb20dc35f0a138fce93186eaa688e4ea.tar.gz
chromium_src-1442d7f4cb20dc35f0a138fce93186eaa688e4ea.tar.bz2
Make Surface::GetEligibleFrame const
The frame shouldn't be modified by the aggregator, or else it will be broken if GetEligibleFrame is called again. Also modify ScopedPtrVector::const_iterator to make it const-correct. BUG= Review URL: https://codereview.chromium.org/417843003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285431 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/surfaces/surface.h')
-rw-r--r--cc/surfaces/surface.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/surfaces/surface.h b/cc/surfaces/surface.h
index f62a897..403d2e5 100644
--- a/cc/surfaces/surface.h
+++ b/cc/surfaces/surface.h
@@ -28,7 +28,7 @@ class CC_SURFACES_EXPORT Surface {
void QueueFrame(scoped_ptr<CompositorFrame> frame);
// Returns the most recent frame that is eligible to be rendered.
- CompositorFrame* GetEligibleFrame();
+ const CompositorFrame* GetEligibleFrame();
SurfaceFactory* factory() { return factory_; }