| OLD | NEW |
| 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_THREAD_PROXY_H_ | 5 #ifndef CC_TREES_THREAD_PROXY_H_ |
| 6 #define CC_TREES_THREAD_PROXY_H_ | 6 #define CC_TREES_THREAD_PROXY_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/time.h" | 10 #include "base/time.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 virtual void Start(scoped_ptr<OutputSurface> first_output_surface) OVERRIDE; | 54 virtual void Start(scoped_ptr<OutputSurface> first_output_surface) OVERRIDE; |
| 55 virtual void Stop() OVERRIDE; | 55 virtual void Stop() OVERRIDE; |
| 56 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; | 56 virtual size_t MaxPartialTextureUpdates() const OVERRIDE; |
| 57 virtual void AcquireLayerTextures() OVERRIDE; | 57 virtual void AcquireLayerTextures() OVERRIDE; |
| 58 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; | 58 virtual void ForceSerializeOnSwapBuffers() OVERRIDE; |
| 59 virtual skia::RefPtr<SkPicture> CapturePicture() OVERRIDE; | 59 virtual skia::RefPtr<SkPicture> CapturePicture() OVERRIDE; |
| 60 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; | 60 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; |
| 61 virtual bool CommitPendingForTesting() OVERRIDE; | 61 virtual bool CommitPendingForTesting() OVERRIDE; |
| 62 | 62 |
| 63 // LayerTreeHostImplClient implementation | 63 // LayerTreeHostImplClient implementation |
| 64 virtual void DidTryInitializeRendererOnImplThread( |
| 65 bool success, |
| 66 scoped_refptr<ContextProvider> offscreen_context_provider) OVERRIDE; |
| 64 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; | 67 virtual void DidLoseOutputSurfaceOnImplThread() OVERRIDE; |
| 65 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE; | 68 virtual void OnSwapBuffersCompleteOnImplThread() OVERRIDE; |
| 66 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, | 69 virtual void OnVSyncParametersChanged(base::TimeTicks timebase, |
| 67 base::TimeDelta interval) OVERRIDE; | 70 base::TimeDelta interval) OVERRIDE; |
| 68 virtual void BeginFrameOnImplThread(base::TimeTicks frame_time) | 71 virtual void BeginFrameOnImplThread(base::TimeTicks frame_time) |
| 69 OVERRIDE; | 72 OVERRIDE; |
| 70 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE; | 73 virtual void OnCanDrawStateChanged(bool can_draw) OVERRIDE; |
| 71 virtual void OnHasPendingTreeStateChanged(bool has_pending_tree) OVERRIDE; | 74 virtual void OnHasPendingTreeStateChanged(bool has_pending_tree) OVERRIDE; |
| 72 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; | 75 virtual void SetNeedsRedrawOnImplThread() OVERRIDE; |
| 73 virtual void SetNeedsRedrawRectOnImplThread(gfx::Rect dirty_rect) OVERRIDE; | 76 virtual void SetNeedsRedrawRectOnImplThread(gfx::Rect dirty_rect) OVERRIDE; |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 | 261 |
| 259 base::TimeTicks smoothness_takes_priority_expiration_time_; | 262 base::TimeTicks smoothness_takes_priority_expiration_time_; |
| 260 bool renew_tree_priority_on_impl_thread_pending_; | 263 bool renew_tree_priority_on_impl_thread_pending_; |
| 261 | 264 |
| 262 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); | 265 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); |
| 263 }; | 266 }; |
| 264 | 267 |
| 265 } // namespace cc | 268 } // namespace cc |
| 266 | 269 |
| 267 #endif // CC_TREES_THREAD_PROXY_H_ | 270 #endif // CC_TREES_THREAD_PROXY_H_ |
| OLD | NEW |