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

Side by Side Diff: cc/trees/single_thread_proxy.h

Issue 12545018: Move context-related callbacks into OutputSurface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unit test Created 7 years, 8 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 | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/single_thread_proxy.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_TREES_SINGLE_THREAD_PROXY_H_ 5 #ifndef CC_TREES_SINGLE_THREAD_PROXY_H_
6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ 6 #define CC_TREES_SINGLE_THREAD_PROXY_H_
7 7
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 virtual void Stop() OVERRIDE; 42 virtual void Stop() OVERRIDE;
43 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; 43 virtual size_t MaxPartialTextureUpdates() const OVERRIDE;
44 virtual void AcquireLayerTextures() OVERRIDE {} 44 virtual void AcquireLayerTextures() OVERRIDE {}
45 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; 45 virtual void ForceSerializeOnSwapBuffers() OVERRIDE;
46 virtual skia::RefPtr<SkPicture> CapturePicture() OVERRIDE; 46 virtual skia::RefPtr<SkPicture> CapturePicture() OVERRIDE;
47 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; 47 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE;
48 virtual bool CommitPendingForTesting() OVERRIDE; 48 virtual bool CommitPendingForTesting() OVERRIDE;
49 49
50 // LayerTreeHostImplClient implementation 50 // LayerTreeHostImplClient implementation
51 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; 51 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE;
52 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE; 52 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {}
53 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, 53 virtual void OnVSyncParametersChanged(base::TimeTicks timebase,
54 base::TimeDelta interval) OVERRIDE {} 54 base::TimeDelta interval) OVERRIDE {}
55 virtual void DidVSync(base::TimeTicks frame_time) OVERRIDE {} 55 virtual void DidVSync(base::TimeTicks frame_time) OVERRIDE {}
56 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE; 56 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE;
57 virtual void OnHasPendingTreeStateChanged(bool have_pending_tree) OVERRIDE; 57 virtual void OnHasPendingTreeStateChanged(bool have_pending_tree) OVERRIDE;
58 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; 58 virtual void SetNeedsRedrawOnImplThread() OVERRIDE;
59 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE; 59 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE;
60 virtual void SetNeedsCommitOnImplThread() OVERRIDE; 60 virtual void SetNeedsCommitOnImplThread() OVERRIDE;
61 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE; 61 virtual void SetNeedsManageTilesOnImplThread() OVERRIDE;
62 virtual void PostAnimationEventsToMainThreadOnImplThread( 62 virtual void PostAnimationEventsToMainThreadOnImplThread(
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 private: 170 private:
171 DebugScopedSetImplThread impl_thread_; 171 DebugScopedSetImplThread impl_thread_;
172 DebugScopedSetMainThreadBlocked main_thread_blocked_; 172 DebugScopedSetMainThreadBlocked main_thread_blocked_;
173 173
174 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); 174 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked);
175 }; 175 };
176 176
177 } // namespace cc 177 } // namespace cc
178 178
179 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ 179 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698