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

Side by Side Diff: cc/layer_tree_host.h

Issue 11550035: Implement pinch-zoom scaling for main-frame scrollbars and pinch-zoom overlay scrollbars. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing files. Created 8 years 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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 CC_LAYER_TREE_HOST_H_ 5 #ifndef CC_LAYER_TREE_HOST_H_
6 #define CC_LAYER_TREE_HOST_H_ 6 #define CC_LAYER_TREE_HOST_H_
7 7
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 29 matching lines...) Expand all
40 #endif // COMPILER 40 #endif // COMPILER
41 41
42 namespace cc { 42 namespace cc {
43 43
44 class Layer; 44 class Layer;
45 class LayerTreeHostImpl; 45 class LayerTreeHostImpl;
46 class LayerTreeHostImplClient; 46 class LayerTreeHostImplClient;
47 class PrioritizedResourceManager; 47 class PrioritizedResourceManager;
48 class ResourceUpdateQueue; 48 class ResourceUpdateQueue;
49 class HeadsUpDisplayLayer; 49 class HeadsUpDisplayLayer;
50 class PinchZoomScrollbarLayer;
50 class Region; 51 class Region;
51 struct ScrollAndScaleSet; 52 struct ScrollAndScaleSet;
52 53
53 54
54 // Provides information on an Impl's rendering capabilities back to the LayerTre eHost 55 // Provides information on an Impl's rendering capabilities back to the LayerTre eHost
55 struct CC_EXPORT RendererCapabilities { 56 struct CC_EXPORT RendererCapabilities {
56 RendererCapabilities(); 57 RendererCapabilities();
57 ~RendererCapabilities(); 58 ~RendererCapabilities();
58 59
59 GLenum bestTextureFormat; 60 GLenum bestTextureFormat;
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 int m_commitNumber; 238 int m_commitNumber;
238 RenderingStats m_renderingStats; 239 RenderingStats m_renderingStats;
239 240
240 bool m_rendererInitialized; 241 bool m_rendererInitialized;
241 bool m_outputSurfaceLost; 242 bool m_outputSurfaceLost;
242 int m_numTimesRecreateShouldFail; 243 int m_numTimesRecreateShouldFail;
243 int m_numFailedRecreateAttempts; 244 int m_numFailedRecreateAttempts;
244 245
245 scoped_refptr<Layer> m_rootLayer; 246 scoped_refptr<Layer> m_rootLayer;
246 scoped_refptr<HeadsUpDisplayLayer> m_hudLayer; 247 scoped_refptr<HeadsUpDisplayLayer> m_hudLayer;
248 scoped_refptr<PinchZoomScrollbarLayer> m_pinchZoomScrollbarVertical;
249 scoped_refptr<PinchZoomScrollbarLayer> m_pinchZoomScrollbarHorizontal;
247 250
248 scoped_ptr<PrioritizedResourceManager> m_contentsTextureManager; 251 scoped_ptr<PrioritizedResourceManager> m_contentsTextureManager;
249 scoped_ptr<PrioritizedResource> m_surfaceMemoryPlaceholder; 252 scoped_ptr<PrioritizedResource> m_surfaceMemoryPlaceholder;
250 253
251 LayerTreeSettings m_settings; 254 LayerTreeSettings m_settings;
252 LayerTreeDebugState m_debugState; 255 LayerTreeDebugState m_debugState;
253 256
254 gfx::Size m_layoutViewportSize; 257 gfx::Size m_layoutViewportSize;
255 gfx::Size m_deviceViewportSize; 258 gfx::Size m_deviceViewportSize;
256 float m_deviceScaleFactor; 259 float m_deviceScaleFactor;
(...skipping 15 matching lines...) Expand all
272 size_t m_partialTextureUpdateRequests; 275 size_t m_partialTextureUpdateRequests;
273 276
274 static bool s_needsFilterContext; 277 static bool s_needsFilterContext;
275 278
276 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 279 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
277 }; 280 };
278 281
279 } // namespace cc 282 } // namespace cc
280 283
281 #endif // CC_LAYER_TREE_HOST_H_ 284 #endif // CC_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/cc.gyp ('k') | cc/layer_tree_host.cc » ('j') | cc/layer_tree_host_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698