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

Side by Side Diff: content/browser/renderer_host/compositor_impl_android.h

Issue 19267016: Add a flag to allow renderer to use software compositor when GL compositor doesn't work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 const gfx::Rect& sub_rect, 70 const gfx::Rect& sub_rect,
71 gfx::JavaBitmap& bitmap) OVERRIDE; 71 gfx::JavaBitmap& bitmap) OVERRIDE;
72 72
73 // LayerTreeHostClient implementation. 73 // LayerTreeHostClient implementation.
74 virtual void WillBeginFrame() OVERRIDE {} 74 virtual void WillBeginFrame() OVERRIDE {}
75 virtual void DidBeginFrame() OVERRIDE {} 75 virtual void DidBeginFrame() OVERRIDE {}
76 virtual void Animate(double frame_begin_time) OVERRIDE {} 76 virtual void Animate(double frame_begin_time) OVERRIDE {}
77 virtual void Layout() OVERRIDE {} 77 virtual void Layout() OVERRIDE {}
78 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, 78 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta,
79 float page_scale) OVERRIDE {} 79 float page_scale) OVERRIDE {}
80 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface() OVERRIDE; 80 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback)
81 OVERRIDE;
81 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {} 82 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {}
82 virtual void WillCommit() OVERRIDE {} 83 virtual void WillCommit() OVERRIDE {}
83 virtual void DidCommit() OVERRIDE {} 84 virtual void DidCommit() OVERRIDE {}
84 virtual void DidCommitAndDrawFrame() OVERRIDE {} 85 virtual void DidCommitAndDrawFrame() OVERRIDE {}
85 virtual void DidCompleteSwapBuffers() OVERRIDE; 86 virtual void DidCompleteSwapBuffers() OVERRIDE;
86 virtual void ScheduleComposite() OVERRIDE; 87 virtual void ScheduleComposite() OVERRIDE;
87 virtual scoped_refptr<cc::ContextProvider> 88 virtual scoped_refptr<cc::ContextProvider>
88 OffscreenContextProviderForMainThread() OVERRIDE; 89 OffscreenContextProviderForMainThread() OVERRIDE;
89 virtual scoped_refptr<cc::ContextProvider> 90 virtual scoped_refptr<cc::ContextProvider>
90 OffscreenContextProviderForCompositorThread() OVERRIDE; 91 OffscreenContextProviderForCompositorThread() OVERRIDE;
(...skipping 24 matching lines...) Expand all
115 base::WeakPtrFactory<CompositorImpl> weak_factory_; 116 base::WeakPtrFactory<CompositorImpl> weak_factory_;
116 117
117 scoped_refptr<cc::ContextProvider> null_offscreen_context_provider_; 118 scoped_refptr<cc::ContextProvider> null_offscreen_context_provider_;
118 119
119 DISALLOW_COPY_AND_ASSIGN(CompositorImpl); 120 DISALLOW_COPY_AND_ASSIGN(CompositorImpl);
120 }; 121 };
121 122
122 } // namespace content 123 } // namespace content
123 124
124 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_ 125 #endif // CONTENT_BROWSER_RENDERER_HOST_COMPOSITOR_IMPL_ANDROID_H_
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_data_manager_impl_private.cc ('k') | content/browser/renderer_host/compositor_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698