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

Side by Side Diff: content/browser/android/in_process/synchronous_compositor_output_surface.h

Issue 16304003: Unified OutputSurface::SwapBuffers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to 205473 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE _H_ 5 #ifndef CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE _H_
6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE _H_ 6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE _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 30 matching lines...) Expand all
41 class SynchronousCompositorOutputSurface 41 class SynchronousCompositorOutputSurface
42 : NON_EXPORTED_BASE(public cc::OutputSurface) { 42 : NON_EXPORTED_BASE(public cc::OutputSurface) {
43 public: 43 public:
44 explicit SynchronousCompositorOutputSurface(int routing_id); 44 explicit SynchronousCompositorOutputSurface(int routing_id);
45 virtual ~SynchronousCompositorOutputSurface(); 45 virtual ~SynchronousCompositorOutputSurface();
46 46
47 // OutputSurface. 47 // OutputSurface.
48 virtual bool ForcedDrawToSoftwareDevice() const OVERRIDE; 48 virtual bool ForcedDrawToSoftwareDevice() const OVERRIDE;
49 virtual bool BindToClient(cc::OutputSurfaceClient* surface_client) OVERRIDE; 49 virtual bool BindToClient(cc::OutputSurfaceClient* surface_client) OVERRIDE;
50 virtual void Reshape(gfx::Size size, float scale_factor) OVERRIDE; 50 virtual void Reshape(gfx::Size size, float scale_factor) OVERRIDE;
51 virtual void SendFrameToParentCompositor(cc::CompositorFrame* frame) OVERRIDE;
52 virtual void SetNeedsBeginFrame(bool enable) OVERRIDE; 51 virtual void SetNeedsBeginFrame(bool enable) OVERRIDE;
53 virtual void SwapBuffers(const ui::LatencyInfo& info) OVERRIDE; 52 virtual void SwapBuffers(cc::CompositorFrame* frame) OVERRIDE;
54 53
55 // Partial SynchronousCompositor API implementation. 54 // Partial SynchronousCompositor API implementation.
56 bool InitializeHwDraw(); 55 bool InitializeHwDraw();
57 bool DemandDrawHw(gfx::Size surface_size, 56 bool DemandDrawHw(gfx::Size surface_size,
58 const gfx::Transform& transform, 57 const gfx::Transform& transform,
59 gfx::Rect clip); 58 gfx::Rect clip);
60 bool DemandDrawSw(SkCanvas* canvas); 59 bool DemandDrawSw(SkCanvas* canvas);
61 60
62 private: 61 private:
63 class SoftwareDevice; 62 class SoftwareDevice;
(...skipping 11 matching lines...) Expand all
75 74
76 // Only valid (non-NULL) during a DemandDrawSw() call. 75 // Only valid (non-NULL) during a DemandDrawSw() call.
77 SkCanvas* current_sw_canvas_; 76 SkCanvas* current_sw_canvas_;
78 77
79 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); 78 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface);
80 }; 79 };
81 80
82 } // namespace content 81 } // namespace content
83 82
84 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURF ACE_H_ 83 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURF ACE_H_
OLDNEW
« no previous file with comments | « cc/trees/thread_proxy.cc ('k') | content/browser/android/in_process/synchronous_compositor_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698