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

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

Issue 1359163005: Remove surface_id from RenderWidget/RenderWidgetHost and friends (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@channel_creation_preempt
Patch Set: fix more tests Created 5 years, 3 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
« no previous file with comments | « content/public/test/render_view_test.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_ 5 #ifndef CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_
6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_ 6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "gpu/config/gpu_info.h" 10 #include "gpu/config/gpu_info.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 public: 42 public:
43 // Must only be called once, e.g. on startup. Ownership of |instance| remains 43 // Must only be called once, e.g. on startup. Ownership of |instance| remains
44 // with the caller. 44 // with the caller.
45 static void SetInstance(SynchronousCompositorFactory* instance); 45 static void SetInstance(SynchronousCompositorFactory* instance);
46 static SynchronousCompositorFactory* GetInstance(); 46 static SynchronousCompositorFactory* GetInstance();
47 47
48 virtual scoped_refptr<base::SingleThreadTaskRunner> 48 virtual scoped_refptr<base::SingleThreadTaskRunner>
49 GetCompositorTaskRunner() = 0; 49 GetCompositorTaskRunner() = 0;
50 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( 50 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(
51 int routing_id, 51 int routing_id,
52 int surface_id,
53 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue) = 0; 52 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue) = 0;
54 53
55 // The factory maintains ownership of the returned interface. 54 // The factory maintains ownership of the returned interface.
56 virtual InputHandlerManagerClient* GetInputHandlerManagerClient() = 0; 55 virtual InputHandlerManagerClient* GetInputHandlerManagerClient() = 0;
57 56
58 virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( 57 virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource(
59 int routing_id) = 0; 58 int routing_id) = 0;
60 virtual scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory( 59 virtual scoped_refptr<StreamTextureFactory> CreateStreamTextureFactory(
61 int frame_id) = 0; 60 int frame_id) = 0;
62 61
(...skipping 11 matching lines...) Expand all
74 virtual gpu::GPUInfo GetGPUInfo() const = 0; 73 virtual gpu::GPUInfo GetGPUInfo() const = 0;
75 74
76 protected: 75 protected:
77 SynchronousCompositorFactory() {} 76 SynchronousCompositorFactory() {}
78 virtual ~SynchronousCompositorFactory() {} 77 virtual ~SynchronousCompositorFactory() {}
79 }; 78 };
80 79
81 } 80 }
82 81
83 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_ 82 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_FACTORY_H_
OLDNEW
« no previous file with comments | « content/public/test/render_view_test.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698