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

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

Issue 15860003: AW hardware draw mega patch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: r205552 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/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
11 #include "cc/output/output_surface.h" 12 #include "cc/output/output_surface.h"
12 #include "content/public/browser/android/synchronous_compositor.h" 13 #include "content/public/browser/android/synchronous_compositor.h"
13 14
14 namespace cc { 15 namespace cc {
15 class CompositorFrameMetadata; 16 class CompositorFrameMetadata;
16 } 17 class ContextProvider;
18 } // namespace cc
17 19
18 namespace content { 20 namespace content {
19 21
20 class SynchronousCompositorClient; 22 class SynchronousCompositorClient;
21 class SynchronousCompositorOutputSurface; 23 class SynchronousCompositorOutputSurface;
22 class WebGraphicsContext3DCommandBufferImpl; 24 class WebGraphicsContext3DCommandBufferImpl;
23 25
24 class SynchronousCompositorOutputSurfaceDelegate { 26 class SynchronousCompositorOutputSurfaceDelegate {
25 public: 27 public:
26 virtual void DidBindOutputSurface( 28 virtual void DidBindOutputSurface(
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 bool CalledOnValidThread() const; 76 bool CalledOnValidThread() const;
75 SynchronousCompositorOutputSurfaceDelegate* GetDelegate(); 77 SynchronousCompositorOutputSurfaceDelegate* GetDelegate();
76 78
77 int routing_id_; 79 int routing_id_;
78 bool needs_begin_frame_; 80 bool needs_begin_frame_;
79 bool did_swap_buffer_; 81 bool did_swap_buffer_;
80 82
81 // Only valid (non-NULL) during a DemandDrawSw() call. 83 // Only valid (non-NULL) during a DemandDrawSw() call.
82 SkCanvas* current_sw_canvas_; 84 SkCanvas* current_sw_canvas_;
83 85
86 scoped_refptr<cc::ContextProvider> context_provider_for_compositor_thread_;
87
84 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); 88 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface);
85 }; 89 };
86 90
87 } // namespace content 91 } // namespace content
88 92
89 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURF ACE_H_ 93 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURF ACE_H_
OLDNEW
« no previous file with comments | « cc/resources/resource_provider.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