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

Unified Diff: cc/texture_update_controller.h

Issue 11270047: cc: Rename TextureUpdate to ResourceUpdate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sort includes and forward declarations. Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/texture_layer_client.h ('k') | cc/texture_update_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/texture_update_controller.h
diff --git a/cc/texture_update_controller.h b/cc/texture_update_controller.h
deleted file mode 100644
index ee819c7904642c151fa74e56fd8a51e7b5ef3b18..0000000000000000000000000000000000000000
--- a/cc/texture_update_controller.h
+++ /dev/null
@@ -1,78 +0,0 @@
-// Copyright 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CCTextureUpdateController_h
-#define CCTextureUpdateController_h
-
-#include "base/basictypes.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/time.h"
-#include "cc/texture_update_queue.h"
-#include "cc/timer.h"
-
-namespace cc {
-
-class ResourceProvider;
-
-class TextureUpdateControllerClient {
-public:
- virtual void readyToFinalizeTextureUpdates() = 0;
-
-protected:
- virtual ~TextureUpdateControllerClient() { }
-};
-
-class TextureUpdateController : public TimerClient {
-public:
- static scoped_ptr<TextureUpdateController> create(TextureUpdateControllerClient* client, Thread* thread, scoped_ptr<TextureUpdateQueue> queue, ResourceProvider* resourceProvider)
- {
- return make_scoped_ptr(new TextureUpdateController(client, thread, queue.Pass(), resourceProvider));
- }
- static size_t maxPartialTextureUpdates();
-
- virtual ~TextureUpdateController();
-
- // Discard uploads to textures that were evicted on the impl thread.
- void discardUploadsToEvictedResources();
-
- void performMoreUpdates(base::TimeTicks timeLimit);
- void finalize();
-
- // TimerClient implementation.
- virtual void onTimerFired() OVERRIDE;
-
- // Virtual for testing.
- virtual base::TimeTicks now() const;
- virtual base::TimeDelta updateMoreTexturesTime() const;
- virtual size_t updateMoreTexturesSize() const;
-
-protected:
- TextureUpdateController(TextureUpdateControllerClient*, Thread*, scoped_ptr<TextureUpdateQueue>, ResourceProvider*);
-
- static size_t maxFullUpdatesPerTick(ResourceProvider*);
-
- size_t maxBlockingUpdates() const;
-
- void updateTexture(ResourceUpdate);
-
- // This returns true when there were textures left to update.
- bool updateMoreTexturesIfEnoughTimeRemaining();
- void updateMoreTexturesNow();
-
- TextureUpdateControllerClient* m_client;
- scoped_ptr<Timer> m_timer;
- scoped_ptr<TextureUpdateQueue> m_queue;
- bool m_contentsTexturesPurged;
- ResourceProvider* m_resourceProvider;
- base::TimeTicks m_timeLimit;
- size_t m_textureUpdatesPerTick;
- bool m_firstUpdateAttempt;
-
-private:
- DISALLOW_COPY_AND_ASSIGN(TextureUpdateController);
-};
-
-} // namespace cc
-
-#endif // CCTextureUpdateController_h
« no previous file with comments | « cc/texture_layer_client.h ('k') | cc/texture_update_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698