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

Side by Side Diff: content/browser/compositor/browser_compositor_output_surface.h

Issue 145313006: [#7] Pass gfx structs by const ref (gfx::Size) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 10 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
6 #define CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
7 7
8 #include "base/id_map.h" 8 #include "base/id_map.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/threading/non_thread_safe.h" 10 #include "base/threading/non_thread_safe.h"
(...skipping 14 matching lines...) Expand all
25 class WebGraphicsContext3DCommandBufferImpl; 25 class WebGraphicsContext3DCommandBufferImpl;
26 26
27 class CONTENT_EXPORT BrowserCompositorOutputSurface 27 class CONTENT_EXPORT BrowserCompositorOutputSurface
28 : public cc::OutputSurface, 28 : public cc::OutputSurface,
29 public base::NonThreadSafe { 29 public base::NonThreadSafe {
30 public: 30 public:
31 virtual ~BrowserCompositorOutputSurface(); 31 virtual ~BrowserCompositorOutputSurface();
32 32
33 // cc::OutputSurface implementation. 33 // cc::OutputSurface implementation.
34 virtual bool BindToClient(cc::OutputSurfaceClient* client) OVERRIDE; 34 virtual bool BindToClient(cc::OutputSurfaceClient* client) OVERRIDE;
35 virtual void Reshape(gfx::Size size, float scale_factor) OVERRIDE; 35 virtual void Reshape(const gfx::Size& size, float scale_factor) OVERRIDE;
36 36
37 void OnUpdateVSyncParameters(base::TimeTicks timebase, 37 void OnUpdateVSyncParameters(base::TimeTicks timebase,
38 base::TimeDelta interval); 38 base::TimeDelta interval);
39 39
40 void SetReflector(ReflectorImpl* reflector); 40 void SetReflector(ReflectorImpl* reflector);
41 41
42 protected: 42 protected:
43 // Constructor used by the accelerated implementation. 43 // Constructor used by the accelerated implementation.
44 BrowserCompositorOutputSurface( 44 BrowserCompositorOutputSurface(
45 const scoped_refptr<ContextProviderCommandBuffer>& context, 45 const scoped_refptr<ContextProviderCommandBuffer>& context,
(...skipping 19 matching lines...) Expand all
65 65
66 private: 66 private:
67 void Initialize(); 67 void Initialize();
68 68
69 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOutputSurface); 69 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOutputSurface);
70 }; 70 };
71 71
72 } // namespace content 72 } // namespace content
73 73
74 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 74 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698