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

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

Issue 17204002: Revert 206020 "cc: Emulate BeginFrame in OutputSurfaces that don..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 6 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 | « trunk/src/cc/trees/proxy.cc ('k') | trunk/src/cc/trees/thread_proxy.h » ('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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 virtual skia::RefPtr<SkPicture> CapturePicture() OVERRIDE; 44 virtual skia::RefPtr<SkPicture> CapturePicture() OVERRIDE;
45 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; 45 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE;
46 virtual bool CommitPendingForTesting() OVERRIDE; 46 virtual bool CommitPendingForTesting() OVERRIDE;
47 47
48 // LayerTreeHostImplClient implementation 48 // LayerTreeHostImplClient implementation
49 virtual void DidTryInitializeRendererOnImplThread( 49 virtual void DidTryInitializeRendererOnImplThread(
50 bool success, 50 bool success,
51 scoped_refptr<ContextProvider> offscreen_context_provider) OVERRIDE; 51 scoped_refptr<ContextProvider> offscreen_context_provider) OVERRIDE;
52 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; 52 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE;
53 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {} 53 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE {}
54 virtual void OnVSyncParametersChanged(base::TimeTicks timebase,
55 base::TimeDelta interval) OVERRIDE {}
54 virtual void BeginFrameOnImplThread(base::TimeTicks frame_time) 56 virtual void BeginFrameOnImplThread(base::TimeTicks frame_time)
55 OVERRIDE {} 57 OVERRIDE {}
56 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE; 58 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE;
57 virtual void OnHasPendingTreeStateChanged(bool have_pending_tree) OVERRIDE; 59 virtual void OnHasPendingTreeStateChanged(bool have_pending_tree) OVERRIDE;
58 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; 60 virtual void SetNeedsRedrawOnImplThread() OVERRIDE;
59 virtual void SetNeedsRedrawRectOnImplThread(gfx::Rect dirty_rect) OVERRIDE; 61 virtual void SetNeedsRedrawRectOnImplThread(gfx::Rect dirty_rect) OVERRIDE;
60 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE; 62 virtual void DidInitializeVisibleTileOnImplThread() OVERRIDE;
61 virtual void SetNeedsCommitOnImplThread() OVERRIDE; 63 virtual void SetNeedsCommitOnImplThread() OVERRIDE;
62 virtual void PostAnimationEventsToMainThreadOnImplThread( 64 virtual void PostAnimationEventsToMainThreadOnImplThread(
63 scoped_ptr<AnimationEventsVector> events, 65 scoped_ptr<AnimationEventsVector> events,
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 private: 174 private:
173 DebugScopedSetImplThread impl_thread_; 175 DebugScopedSetImplThread impl_thread_;
174 DebugScopedSetMainThreadBlocked main_thread_blocked_; 176 DebugScopedSetMainThreadBlocked main_thread_blocked_;
175 177
176 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); 178 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked);
177 }; 179 };
178 180
179 } // namespace cc 181 } // namespace cc
180 182
181 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ 183 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « trunk/src/cc/trees/proxy.cc ('k') | trunk/src/cc/trees/thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698