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

Side by Side Diff: cc/layer_tree_host_impl.h

Issue 12022043: cc: Fix inappropriate use of term "texture". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: s/InitializeTile/UploadTile/ and s/CompletedSetPixels/CompletedTileUploads/ Created 7 years, 11 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
« no previous file with comments | « no previous file | cc/layer_tree_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 #ifndef CC_LAYER_TREE_HOST_IMPL_H_ 5 #ifndef CC_LAYER_TREE_HOST_IMPL_H_
6 #define CC_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // LayerTreeHost->Proxy callback interface. 44 // LayerTreeHost->Proxy callback interface.
45 class LayerTreeHostImplClient { 45 class LayerTreeHostImplClient {
46 public: 46 public:
47 virtual void didLoseOutputSurfaceOnImplThread() = 0; 47 virtual void didLoseOutputSurfaceOnImplThread() = 0;
48 virtual void onSwapBuffersCompleteOnImplThread() = 0; 48 virtual void onSwapBuffersCompleteOnImplThread() = 0;
49 virtual void onVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe lta interval) = 0; 49 virtual void onVSyncParametersChanged(base::TimeTicks timebase, base::TimeDe lta interval) = 0;
50 virtual void onCanDrawStateChanged(bool canDraw) = 0; 50 virtual void onCanDrawStateChanged(bool canDraw) = 0;
51 virtual void onHasPendingTreeStateChanged(bool hasPendingTree) = 0; 51 virtual void onHasPendingTreeStateChanged(bool hasPendingTree) = 0;
52 virtual void setNeedsRedrawOnImplThread() = 0; 52 virtual void setNeedsRedrawOnImplThread() = 0;
53 virtual void didSwapUseIncompleteTextureOnImplThread() = 0; 53 virtual void didSwapUseIncompleteTileOnImplThread() = 0;
54 virtual void didUploadVisibleHighResolutionTileOnImplTread() = 0; 54 virtual void didUploadVisibleHighResolutionTileOnImplThread() = 0;
55 virtual void setNeedsCommitOnImplThread() = 0; 55 virtual void setNeedsCommitOnImplThread() = 0;
56 virtual void setNeedsManageTilesOnImplThread() = 0; 56 virtual void setNeedsManageTilesOnImplThread() = 0;
57 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<Animatio nEventsVector>, base::Time wallClockTime) = 0; 57 virtual void postAnimationEventsToMainThreadOnImplThread(scoped_ptr<Animatio nEventsVector>, base::Time wallClockTime) = 0;
58 // Returns true if resources were deleted by this call. 58 // Returns true if resources were deleted by this call.
59 virtual bool reduceContentsTextureMemoryOnImplThread(size_t limitBytes, int priorityCutoff) = 0; 59 virtual bool reduceContentsTextureMemoryOnImplThread(size_t limitBytes, int priorityCutoff) = 0;
60 virtual void sendManagedMemoryStats() = 0; 60 virtual void sendManagedMemoryStats() = 0;
61 virtual bool isInsideDraw() = 0; 61 virtual bool isInsideDraw() = 0;
62 virtual void renewTreePriority() = 0; 62 virtual void renewTreePriority() = 0;
63 }; 63 };
64 64
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 163
164 bool swapBuffers(); 164 bool swapBuffers();
165 165
166 void readback(void* pixels, const gfx::Rect&); 166 void readback(void* pixels, const gfx::Rect&);
167 167
168 LayerTreeImpl* activeTree() { return m_activeTree.get(); } 168 LayerTreeImpl* activeTree() { return m_activeTree.get(); }
169 const LayerTreeImpl* activeTree() const { return m_activeTree.get(); } 169 const LayerTreeImpl* activeTree() const { return m_activeTree.get(); }
170 LayerTreeImpl* pendingTree() { return m_pendingTree.get(); } 170 LayerTreeImpl* pendingTree() { return m_pendingTree.get(); }
171 const LayerTreeImpl* pendingTree() const { return m_pendingTree.get(); } 171 const LayerTreeImpl* pendingTree() const { return m_pendingTree.get(); }
172 void createPendingTree(); 172 void createPendingTree();
173 void checkForCompletedTextures(); 173 void checkForCompletedTileUploads();
174 virtual void activatePendingTreeIfNeeded(); 174 virtual void activatePendingTreeIfNeeded();
175 175
176 // Shortcuts to layers on the active tree. 176 // Shortcuts to layers on the active tree.
177 LayerImpl* rootLayer() const; 177 LayerImpl* rootLayer() const;
178 LayerImpl* rootScrollLayer() const; 178 LayerImpl* rootScrollLayer() const;
179 LayerImpl* currentlyScrollingLayer() const; 179 LayerImpl* currentlyScrollingLayer() const;
180 180
181 bool visible() const { return m_visible; } 181 bool visible() const { return m_visible; }
182 void setVisible(bool); 182 void setVisible(bool);
183 183
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 size_t m_lastSentMemoryUseBytes; 356 size_t m_lastSentMemoryUseBytes;
357 357
358 scoped_ptr<AnimationRegistrar> m_animationRegistrar; 358 scoped_ptr<AnimationRegistrar> m_animationRegistrar;
359 359
360 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 360 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
361 }; 361 };
362 362
363 } // namespace cc 363 } // namespace cc
364 364
365 #endif // CC_LAYER_TREE_HOST_IMPL_H_ 365 #endif // CC_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698