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

Side by Side Diff: webkit/glue/webkitplatformsupport_impl.h

Issue 10918037: Implementation of WebCompositorSupport when use_libcc_for_compositor=1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ignore c4800 in webkit_glue Created 8 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 | Annotate | Revision Log
« no previous file with comments | « webkit/glue/webkit_glue.gypi ('k') | webkit/glue/webkitplatformsupport_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 WEBKIT_PLATFORM_SUPPORT_IMPL_H_ 5 #ifndef WEBKIT_PLATFORM_SUPPORT_IMPL_H_
6 #define WEBKIT_PLATFORM_SUPPORT_IMPL_H_ 6 #define WEBKIT_PLATFORM_SUPPORT_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/platform_file.h" 9 #include "base/platform_file.h"
10 #include "base/threading/thread_local_storage.h" 10 #include "base/threading/thread_local_storage.h"
(...skipping 10 matching lines...) Expand all
21 #elif defined(OS_ANDROID) 21 #elif defined(OS_ANDROID)
22 #include "webkit/glue/webthemeengine_impl_android.h" 22 #include "webkit/glue/webthemeengine_impl_android.h"
23 #elif defined(OS_POSIX) && !defined(OS_ANDROID) 23 #elif defined(OS_POSIX) && !defined(OS_ANDROID)
24 #include "webkit/glue/webthemeengine_impl_linux.h" 24 #include "webkit/glue/webthemeengine_impl_linux.h"
25 #endif 25 #endif
26 26
27 27
28 class MessageLoop; 28 class MessageLoop;
29 29
30 namespace webkit { 30 namespace webkit {
31 class WebCompositorSupportImpl;
31 struct WebPluginInfo; 32 struct WebPluginInfo;
32 } 33 }
33 34
34 namespace WebKit { 35 namespace WebKit {
35 class WebFlingAnimator; 36 class WebFlingAnimator;
36 class WebSocketStreamHandle; 37 class WebSocketStreamHandle;
37 } 38 }
38 39
39 namespace webkit_glue { 40 namespace webkit_glue {
40 41
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 virtual double currentTime(); 113 virtual double currentTime();
113 virtual double monotonicallyIncreasingTime(); 114 virtual double monotonicallyIncreasingTime();
114 virtual void cryptographicallyRandomValues( 115 virtual void cryptographicallyRandomValues(
115 unsigned char* buffer, size_t length); 116 unsigned char* buffer, size_t length);
116 virtual void setSharedTimerFiredFunction(void (*func)()); 117 virtual void setSharedTimerFiredFunction(void (*func)());
117 virtual void setSharedTimerFireInterval(double interval_seconds); 118 virtual void setSharedTimerFireInterval(double interval_seconds);
118 virtual void stopSharedTimer(); 119 virtual void stopSharedTimer();
119 virtual void callOnMainThread(void (*func)(void*), void* context); 120 virtual void callOnMainThread(void (*func)(void*), void* context);
120 virtual WebKit::WebThread* createThread(const char* name); 121 virtual WebKit::WebThread* createThread(const char* name);
121 virtual WebKit::WebThread* currentThread(); 122 virtual WebKit::WebThread* currentThread();
123 virtual WebKit::WebCompositorSupport* compositorSupport();
122 124
123 125
124 // Embedder functions. The following are not implemented by the glue layer and 126 // Embedder functions. The following are not implemented by the glue layer and
125 // need to be specialized by the embedder. 127 // need to be specialized by the embedder.
126 128
127 // Gets a localized string given a message id. Returns an empty string if the 129 // Gets a localized string given a message id. Returns an empty string if the
128 // message id is not found. 130 // message id is not found.
129 virtual string16 GetLocalizedString(int message_id) = 0; 131 virtual string16 GetLocalizedString(int message_id) = 0;
130 132
131 // Returns the raw data for a resource. This resource must have been 133 // Returns the raw data for a resource. This resource must have been
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 } 166 }
165 static void DestroyCurrentThread(void*); 167 static void DestroyCurrentThread(void*);
166 168
167 MessageLoop* main_loop_; 169 MessageLoop* main_loop_;
168 base::OneShotTimer<WebKitPlatformSupportImpl> shared_timer_; 170 base::OneShotTimer<WebKitPlatformSupportImpl> shared_timer_;
169 void (*shared_timer_func_)(); 171 void (*shared_timer_func_)();
170 double shared_timer_fire_time_; 172 double shared_timer_fire_time_;
171 int shared_timer_suspended_; // counter 173 int shared_timer_suspended_; // counter
172 WebThemeEngineImpl theme_engine_; 174 WebThemeEngineImpl theme_engine_;
173 base::ThreadLocalStorage::Slot current_thread_slot_; 175 base::ThreadLocalStorage::Slot current_thread_slot_;
176 scoped_ptr<webkit::WebCompositorSupportImpl> compositor_support_;
174 }; 177 };
175 178
176 } // namespace webkit_glue 179 } // namespace webkit_glue
177 180
178 #endif // WEBKIT_PLATFORM_SUPPORT_IMPL_H_ 181 #endif // WEBKIT_PLATFORM_SUPPORT_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/glue/webkit_glue.gypi ('k') | webkit/glue/webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698