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

Side by Side Diff: Source/WebCore/platform/graphics/chromium/cc/CCTextureUpdateQueue.cpp

Issue 10836250: Merge 125577 - [chromium] race between CCLayerTreeHostImpl::releaseContentsTextures and CCThreadPro… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1229/
Patch Set: Created 8 years, 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 void CCTextureUpdateQueue::appendPartialUpload(TextureUploader::Parameters uploa d) 47 void CCTextureUpdateQueue::appendPartialUpload(TextureUploader::Parameters uploa d)
48 { 48 {
49 m_partialEntries.append(upload); 49 m_partialEntries.append(upload);
50 } 50 }
51 51
52 void CCTextureUpdateQueue::appendCopy(TextureCopier::Parameters copy) 52 void CCTextureUpdateQueue::appendCopy(TextureCopier::Parameters copy)
53 { 53 {
54 m_copyEntries.append(copy); 54 m_copyEntries.append(copy);
55 } 55 }
56 56
57 void CCTextureUpdateQueue::clearUploads()
58 {
59 m_fullEntries.clear();
60 m_partialEntries.clear();
61 }
62
57 TextureUploader::Parameters CCTextureUpdateQueue::takeFirstFullUpload() 63 TextureUploader::Parameters CCTextureUpdateQueue::takeFirstFullUpload()
58 { 64 {
59 return m_fullEntries.takeFirst(); 65 return m_fullEntries.takeFirst();
60 } 66 }
61 67
62 TextureUploader::Parameters CCTextureUpdateQueue::takeFirstPartialUpload() 68 TextureUploader::Parameters CCTextureUpdateQueue::takeFirstPartialUpload()
63 { 69 {
64 return m_partialEntries.takeFirst(); 70 return m_partialEntries.takeFirst();
65 } 71 }
66 72
67 TextureCopier::Parameters CCTextureUpdateQueue::takeFirstCopy() 73 TextureCopier::Parameters CCTextureUpdateQueue::takeFirstCopy()
68 { 74 {
69 return m_copyEntries.takeFirst(); 75 return m_copyEntries.takeFirst();
70 } 76 }
71 77
72 bool CCTextureUpdateQueue::hasMoreUpdates() const 78 bool CCTextureUpdateQueue::hasMoreUpdates() const
73 { 79 {
74 return m_fullEntries.size() || m_partialEntries.size() || m_copyEntries.size (); 80 return m_fullEntries.size() || m_partialEntries.size() || m_copyEntries.size ();
75 } 81 }
76 82
77 } 83 }
78 84
79 #endif // USE(ACCELERATED_COMPOSITING) 85 #endif // USE(ACCELERATED_COMPOSITING)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698