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

Side by Side Diff: content/renderer/android/synchronous_compositor_output_surface.h

Issue 14999012: Move cc/debug/latency_info to ui/base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ 5 #ifndef CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_
6 #define CONTENT_RENDERER_ANDOIRD_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ 6 #define CONTENT_RENDERER_ANDOIRD_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 18 matching lines...) Expand all
29 NON_EXPORTED_BASE(public SynchronousCompositor) { 29 NON_EXPORTED_BASE(public SynchronousCompositor) {
30 public: 30 public:
31 explicit SynchronousCompositorOutputSurface(int32 routing_id); 31 explicit SynchronousCompositorOutputSurface(int32 routing_id);
32 virtual ~SynchronousCompositorOutputSurface(); 32 virtual ~SynchronousCompositorOutputSurface();
33 33
34 // OutputSurface. 34 // OutputSurface.
35 virtual bool BindToClient(cc::OutputSurfaceClient* surface_client) OVERRIDE; 35 virtual bool BindToClient(cc::OutputSurfaceClient* surface_client) OVERRIDE;
36 virtual void Reshape(gfx::Size size) OVERRIDE; 36 virtual void Reshape(gfx::Size size) OVERRIDE;
37 virtual void SendFrameToParentCompositor(cc::CompositorFrame* frame) OVERRIDE; 37 virtual void SendFrameToParentCompositor(cc::CompositorFrame* frame) OVERRIDE;
38 virtual void EnableVSyncNotification(bool enable_vsync) OVERRIDE; 38 virtual void EnableVSyncNotification(bool enable_vsync) OVERRIDE;
39 virtual void SwapBuffers(const cc::LatencyInfo& info) OVERRIDE; 39 virtual void SwapBuffers(const ui::LatencyInfo& info) OVERRIDE;
40 40
41 // SynchronousCompositor. 41 // SynchronousCompositor.
42 virtual void SetClient(SynchronousCompositorClient* compositor_client) 42 virtual void SetClient(SynchronousCompositorClient* compositor_client)
43 OVERRIDE; 43 OVERRIDE;
44 virtual bool DemandDrawSw(SkCanvas* canvas) OVERRIDE; 44 virtual bool DemandDrawSw(SkCanvas* canvas) OVERRIDE;
45 virtual bool DemandDrawHw( 45 virtual bool DemandDrawHw(
46 gfx::Size view_size, 46 gfx::Size view_size,
47 const gfx::Transform& transform, 47 const gfx::Transform& transform,
48 gfx::Rect clip) OVERRIDE; 48 gfx::Rect clip) OVERRIDE;
49 49
50 private: 50 private:
51 void UpdateCompositorClientSettings(); 51 void UpdateCompositorClientSettings();
52 bool CalledOnValidThread() const; 52 bool CalledOnValidThread() const;
53 53
54 SynchronousCompositorClient* compositor_client_; 54 SynchronousCompositorClient* compositor_client_;
55 int routing_id_; 55 int routing_id_;
56 bool vsync_enabled_; 56 bool vsync_enabled_;
57 bool did_swap_buffer_; 57 bool did_swap_buffer_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); 59 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface);
60 }; 60 };
61 61
62 } // namespace content 62 } // namespace content
63 63
64 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ 64 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698