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

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

Issue 17553012: Force spontaneous draws into the SW path (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: boliu comments 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
« no previous file with comments | « no previous file | content/browser/android/in_process/synchronous_compositor_output_surface.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_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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 virtual void PostCheckForRetroactiveBeginFrame() OVERRIDE; 72 virtual void PostCheckForRetroactiveBeginFrame() OVERRIDE;
73 73
74 void InvokeComposite(gfx::Size damage_size); 74 void InvokeComposite(gfx::Size damage_size);
75 void UpdateCompositorClientSettings(); 75 void UpdateCompositorClientSettings();
76 void NotifyCompositorSettingsChanged(); 76 void NotifyCompositorSettingsChanged();
77 bool CalledOnValidThread() const; 77 bool CalledOnValidThread() const;
78 SynchronousCompositorOutputSurfaceDelegate* GetDelegate(); 78 SynchronousCompositorOutputSurfaceDelegate* GetDelegate();
79 79
80 int routing_id_; 80 int routing_id_;
81 bool needs_begin_frame_; 81 bool needs_begin_frame_;
82 bool invoking_composite_;
82 bool did_swap_buffer_; 83 bool did_swap_buffer_;
83 84
84 // Only valid (non-NULL) during a DemandDrawSw() call. 85 // Only valid (non-NULL) during a DemandDrawSw() call.
85 SkCanvas* current_sw_canvas_; 86 SkCanvas* current_sw_canvas_;
86 87
87 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); 88 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface);
88 }; 89 };
89 90
90 } // namespace content 91 } // namespace content
91 92
92 #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 | « no previous file | 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